In this guide, we will run vitess in a docker container, and hook into it with delve, a go debugger. This will allow us to debug via a command line interface to delve, or even via a go IDE such as Jetbrains's GoLand.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/debezium-connector-mongodb/pom.xml b/debezium-connector-mongodb/pom.xml | |
index fec4250..5c2ccca 100644 | |
--- a/debezium-connector-mongodb/pom.xml | |
+++ b/debezium-connector-mongodb/pom.xml | |
@@ -115,7 +115,7 @@ | |
<color>yellow</color> | |
</log> | |
<wait> | |
- <log>(?s)waiting for connections on port 27017.*waiting for connections on port 27017</log> <!-- internal port, multiline matching --> | |
+ <log>waiting for connections on port 27017</log> <!-- internal port --> |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0;32mCleaning up workspace...[0m | |
[0;32mCreating mysqlds...[0m | |
WARNING: The host '4542' could not be looked up with ./workspace/mysql/bin/resolveip. | |
This probably means that your libc libraries are not 100 % compatible | |
with this binary MySQL version. The MySQL daemon, mysqld, should work | |
normally with the exception that host name resolving will not work. | |
This means that you should use IP addresses instead of hostnames | |
when specifying MySQL privileges ! | |
Installing MySQL system tables...WARNING: The host '4542' could not be looked up with ./workspace/mysql/bin/resolveip. |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ source common.sh | |
++ set -o pipefail | |
+ is_twitter_patch=true | |
+ getopts :nh opt | |
+ info 'Cleaning up workspace...' | |
+ printf '\033[0;32m%s\033[0m\n' 'Cleaning up workspace...' | |
[0;32mCleaning up workspace...[0m | |
+ rm -rf workspace/mysql-data-a workspace/mysql-data-b workspace/mysql-data-c workspace/mysql-data-d | |
+ rm -rf workspace/zookeeper/data | |
+ rm -rf workspace/zookeeper/logs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
::1 localhost | |
fe80::1%lo0 localhost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/connect.properties.php b/connect.properties.php | |
index 13f02fe..54ab0c1 100644 | |
--- a/connect.properties.php | |
+++ b/connect.properties.php | |
@@ -1,10 +1,10 @@ | |
<?php | |
$opt= getopt('p:g:'); | |
-?>bootstrap.servers=localhost:40001 | |
+?>bootstrap.servers=127.0.0.1:40001 | |
key.converter=io.confluent.connect.avro.AvroConverter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/run.sh b/run.sh | |
index ffdee2a..8484c90 100755 | |
--- a/run.sh | |
+++ b/run.sh | |
@@ -251,16 +251,16 @@ curl -f -m10 -v -i -H "Accept:application/json" -H "Content-Type:application/jso | |
"connector.class": "io.debezium.connector.mysql.MySqlConnector", | |
"tasks.max": "1", | |
"database.hostname": "localhost", | |
- "database.port": "'"${listen_port[c]}"'", | |
+ "database.port": "'"${listen_port[d]}"'", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/run.sh b/run.sh | |
index ffdee2a..8484c90 100755 | |
--- a/run.sh | |
+++ b/run.sh | |
@@ -251,16 +251,16 @@ curl -f -m10 -v -i -H "Accept:application/json" -H "Content-Type:application/jso | |
"connector.class": "io.debezium.connector.mysql.MySqlConnector", | |
"tasks.max": "1", | |
"database.hostname": "localhost", | |
- "database.port": "'"${listen_port[c]}"'", | |
+ "database.port": "'"${listen_port[d]}"'", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 06446dd88..44db95b84 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -48,6 +48,12 @@ ifndef NOBANNER | |
endif | |
go install $(VT_GO_PARALLEL) -ldflags "$(shell tools/build_version_flags.sh)" ./go/... | |
+build_debug: | |
+ifndef NOBANNER |