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
| + 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
| 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 |
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
| # Copyright 2017 Google Inc. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
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 |