-
Notifications
You must be signed in to change notification settings - Fork 1k
Vitess VStream Replicator Support #1943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kovyrin
wants to merge
34
commits into
zendesk:master
Choose a base branch
from
kovyrin:vitess-experimental
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 19 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
0458377
Initial WIP implementation of Vitess VStream replicator support
kovyrin b1d7b77
Switch to using tabs instead of spaces
kovyrin 361f080
More space->tabs conversion
kovyrin eca0395
Fix a tab vs space issue
kovyrin d2cbc20
Add Vitess position tracking/recovery support
kovyrin d140427
Cleanup Position classes (move Vitess stuff into a dedicated class)
kovyrin 7c7abef
Revert some formatting changes introduced by VScode
kovyrin 60bf28e
Another VScode change
kovyrin 4dd9da7
Another VScode change
kovyrin a3ea1aa
Add a schema migration and change the vgtid column in positions
kovyrin eee6f01
Stop VStream replicator if the observer dies for whatever reason.
kovyrin 236092e
When running against Vitess, we cannot rely on read_only variable
kovyrin 6e7a4d9
Unsupported event is not a warning
kovyrin 918efaa
Add Vitess test scripts, docs, etc
kovyrin 3b282ce
Intern Vitess keyspace/table/column/type names + enum values to reduc…
kovyrin b712ae0
Add a cleanup script for Vitess stuff
kovyrin 3265121
Formatting cleanup
kovyrin 8841ba4
Add TLS support for VTgate connections
kovyrin be4cc0e
Added TLS client cert authentication support
kovyrin 2eabf29
Revert unrelated changes to Position class
kovyrin c01b8a5
Ignore an empty VGTID from the positions table
kovyrin 9c35476
Restore ports
kovyrin ea115c6
Ensure we get a PKCS#8 private key
kovyrin bb3370c
No need to explicitly enable plaintext
kovyrin 1dbb36a
Merge branch 'master' into vitess-experimental
kovyrin 96a8004
Implement user/password auth on grpc calls
kovyrin 92d58f7
Tell the server we want to stop before closing the stream
kovyrin 8e99145
Merge branch 'master' into vitess-experimental
kovyrin 7d8d528
Re-enable opencensus stuff
kovyrin 64f02d1
Remove the extra empty line
kovyrin e96ef9c
Capture old values from VStream UPDATE events
kovyrin 312aab2
Change vitess ports to not conflict with Vitess dev clusters
kovyrin be63881
Do not recover from positions with different client ids when running …
kovyrin ccf2446
Move extremely verbose Vitess replicator logs to the trace level
kovyrin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
35 changes: 35 additions & 0 deletions
35
src/main/java/com/zendesk/maxwell/MaxwellVitessConfig.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| package com.zendesk.maxwell; | ||
|
|
||
| public class MaxwellVitessConfig { | ||
| public String vtgateHost; | ||
| public int vtgatePort; | ||
|
|
||
| public String user; | ||
| public String password; | ||
|
|
||
| public String keyspace; | ||
| public String shard; | ||
|
|
||
| public boolean usePlaintext; | ||
| public String tlsCA; | ||
| public String tlsCert; | ||
| public String tlsKey; | ||
| public String tlsServerName; | ||
|
|
||
| public MaxwellVitessConfig() { | ||
| this.vtgateHost = "localhost"; | ||
| this.vtgatePort = 15991; | ||
| this.usePlaintext = true; | ||
|
|
||
| this.tlsCA = null; | ||
| this.tlsCert = null; | ||
| this.tlsKey = null; | ||
| this.tlsServerName = null; | ||
|
|
||
| this.user = null; | ||
| this.password = null; | ||
|
|
||
| this.keyspace = null; | ||
| this.shard = ""; | ||
| } | ||
| } |
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.