-
Notifications
You must be signed in to change notification settings - Fork 0
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
slack-vitess-r14.0.5
: several vtorc
backports from v15
#118
slack-vitess-r14.0.5
: several vtorc
backports from v15
#118
Conversation
* Switch to `pflag` for all parsing This transparently swaps the cli parsing library used by `internal/flag` from the standard library `flag` package to `spf13/pflag`. It also introduces hook points for packages throughout the vitess codebase to register their flags for either all commands using `servenv` or a particular subset of commands. This allows these packages to continue to define their flag variables in a package-private way, but without polluting the global flagset. Signed-off-by: Andrew Mason <andrew@planetscale.com> * Workaround exit code difference between stdlib `flag` and `pflag` tl;dr stdlib `flag` has [this][1] and `pflag` does not [1]: golang/go@dcf0929 Signed-off-by: Andrew Mason <andrew@planetscale.com> * adjust test data for difference in spacing between pflag/stdflag Signed-off-by: Andrew Mason <andrew@planetscale.com> * update lingering legacy flag tests Signed-off-by: Andrew Mason <andrew@planetscale.com> * Update vtgate/tabletgateway.go to use new interface to isolate flags, update test data Signed-off-by: Andrew Mason <andrew@planetscale.com> * update flags in java test code Signed-off-by: Andrew Mason <andrew@planetscale.com>
* Port vtorc CLI to servenv and pflag This is a mea culpa on my part; we missed this one before the v14 ship date (because I was unsure the status of vtorc GA and forgot to ask). Consequently, we have to do some extra work to avoid breaking compatibility. Therefore, I introduce a function to inline transform the args passed by the user on the CLI from those that worked with stdlib flag into those that work with pflag. If there is a diff, we print a warning to the user so they know how to update their invocation, so they don't experience issues when we drop this shim code in v16. Signed-off-by: Andrew Mason <andrew@planetscale.com> * fix help text and parsing Signed-off-by: Andrew Mason <andrew@planetscale.com> * fixup! wip: port vtorc CLI to servenv and pflag Signed-off-by: Andrew Mason <andrew@planetscale.com> * Add documentation to the transformation func Signed-off-by: Andrew Mason <andrew@planetscale.com> * fix flag name Signed-off-by: Andrew Mason <andrew@planetscale.com> * Remove app.HelpCommand branches, which describe unsupported functionality Signed-off-by: Andrew Mason <andrew@planetscale.com> * More cleanup: remove HelpCommand and associated code Signed-off-by: Andrew Mason <andrew@planetscale.com> Co-authored-by: Matt Lord <mattalord@gmail.com>
* feat: remove kv_store from vtorc codebase Signed-off-by: Manan Gupta <manan@planetscale.com> * test: add import for side-effects for fixing tests Signed-off-by: Manan Gupta <manan@planetscale.com>
* feat: remove redundant semi-sync setting in fixPrimary since UndoDemotePrimary rpc already does that Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: use tmc rpcs instead of vtorc specific code in fixReplica Signed-off-by: Manan Gupta <manan@planetscale.com> * refactor: refactor code to be cleaner and return the correct value of recovery attempted Signed-off-by: Manan Gupta <manan@planetscale.com>
…is stopped (vitessio#10786) * feat: add failing vtorc test Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: consider replication stopped if either thread is stopped Signed-off-by: Manan Gupta <manan@planetscale.com>
Thanks for the contribution! Before we can merge this, we need @ajm188 @GuptaManan100 to sign the Salesforce Inc. Contributor License Agreement. |
…et startup Signed-off-by: Manan Gupta <manan@planetscale.com>
…perly (vitessio#10943) * feat: add code to also reset replication parameters in setReplicationSourceLocked when required Signed-off-by: Manan Gupta <manan@planetscale.com> * test: fix tests to reflect the change Signed-off-by: Manan Gupta <manan@planetscale.com>
* Getting rid of external logging Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com> * Fix unit test failures Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com> * Fix static code check Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com> * Fixing linter error Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com> Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Thanks for the contribution! Before we can merge this, we need @ajm188 @GuptaManan100 @rsajwani to sign the Salesforce Inc. Contributor License Agreement. |
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com> Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Manan Gupta <manan@planetscale.com> Signed-off-by: Manan Gupta <manan@planetscale.com>
* feat: prevent martini from logging Signed-off-by: Manan Gupta <manan@planetscale.com> * test: add test for checking martini does not log Signed-off-by: Manan Gupta <manan@planetscale.com> Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
* cleanup: remove sharding_column_name and sharding_column_type Signed-off-by: Arvind Murty <arvind.murty@gmail.com> * cleanup: remove sharding_column_name and sharding_column_type Signed-off-by: Arvind Murty <arvind.murty@gmail.com> * cleanup: remove sharding_column_name and sharding_column_type Signed-off-by: Arvind Murty <arvind.murty@gmail.com> * cleanup: remove sharding_column_name and sharding_column_type Signed-off-by: Arvind Murty <arvind.murty@gmail.com> * generate vtadmin files Signed-off-by: Arvind Murty <arvind.murty@gmail.com> * cleanup: remove sharding_column_name and sharding_column_type from vtadmin Signed-off-by: Arvind Murty <arvind.murty@gmail.com> * Merge from main Signed-off-by: Arvind Murty <arvind.murty@gmail.com>
Thanks for the contribution! Before we can merge this, we need @ajm188 @arvind-murty @rsajwani @GuptaManan100 to sign the Salesforce Inc. Contributor License Agreement. |
* Delete all legacy sharding related code Signed-off-by: Matt Lord <mattalord@gmail.com> * Move used until functions from initialsharding to cluster Signed-off-by: Matt Lord <mattalord@gmail.com> * Remove vtctl commands Signed-off-by: Matt Lord <mattalord@gmail.com> * Kill vtworker and SetKeyspaceServedFrom cmd Signed-off-by: Matt Lord <mattalord@gmail.com> * WaitForDrain related stragglers Signed-off-by: Matt Lord <mattalord@gmail.com> * Legacy local straggler workflow Signed-off-by: Matt Lord <mattalord@gmail.com> * Get rid of SetKeyspaceShardingInfo & wait for drain stragglers Signed-off-by: Matt Lord <mattalord@gmail.com> * Remove vtworker stragglers Signed-off-by: Matt Lord <mattalord@gmail.com> * Update throttlerservice protobuf Signed-off-by: Matt Lord <mattalord@gmail.com> * Rename test 24, add hashicorp vault test to it (now mysql_server_vault) Signed-off-by: Matt Lord <mattalord@gmail.com> * Remove last mentiones of legacy sharding in vtctl Signed-off-by: Matt Lord <mattalord@gmail.com> * remove binlog_use_v3_resharding_mode Signed-off-by: Matt Lord <mattalord@gmail.com> * Address review comments Signed-off-by: Matt Lord <mattalord@gmail.com> * Address review comments Signed-off-by: Matt Lord <mattalord@gmail.com> * Correct vtgate help output Signed-off-by: Matt Lord <mattalord@gmail.com>
Thanks for the contribution! Before we can merge this, we need @mattlord @ajm188 @arvind-murty @rsajwani @GuptaManan100 to sign the Salesforce Inc. Contributor License Agreement. |
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
This PR was closed because it has been stale for 7 days with no activity. |
Description
This PR backports several
vtorc
improvements from the v15 releaseRelated PR(s)
Checklist
Deployment Notes