This repository was archived by the owner on Dec 16, 2022. It is now read-only.
Sync with upstream vitess; 2018-12-14#120
Merged
setassociative merged 50 commits intomasterfrom Dec 14, 2018
Merged
Conversation
* When you lose a consul lock, you can't reuse that lock. Existent code does not does that and should a vtctld master lose a lock, it gets stuck in a state where it can't never use that lock again and you will need to restart the process. Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Pull in the topotools.RebuildVschema implementation into the vtgate VschemaManager to share the same helper function that vtctl uses to find all cells and propagate the changed vschema to all of them. This changes the UpdateVschema interface to take in a single modified keyspace and not the whole SrvVschema. Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Abstract out the execution of the vschema ddl statements into a new function in topotools. Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Add new flags to ApplyVschema to be able to take a sql ddl statement either on the command line or in a file to enable vschema changes without having to edit the whole json file. Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Make sure to set the Sharded bit to true when creating the first vindex in a keyspace, otherwise the vschema ddl statements can't be used to bootstrap a new sharded keyspace. Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
The fact that the vschema ddl needs to go through the normal srvtopo interface to get to the underlying topo server when applying vschema ddl operations doesn't play well with the SandboxTopo used in some of the unit tests. So restore the previous implementation which edits the SrvVschema in place and then reapplies it to all cells, rather than trying to reuse topotools.RebuildVschema from the executor. Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Signed-off-by: Derek Perkins <derek@derekperkins.com>
Signed-off-by: Brian Ramos <brirams@users.noreply.github.com>
…om_vagrantfile [vagrant] Remove NFS option from VM synced folder
…-ddls vtctl support for vschema ddls
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
WIP: adapt helm/k8s example to run locally
…R is it isn't already set Signed-off-by: deepthi <deepthi@planetscale.com>
…esults of resharding Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Rework the vschema syntax so that instead of top-level create/drop statements and alter table we use a consistent syntax of: alter vschema create vindex... alter vschema drop vindex ... alter vschema on <table> add vindex ... alter vschema on <table> drop vindex ... Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Make the show syntax consistent: `show vschema vindexes` `show vschema tables` Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Since unsharded keyspaces don't have vindex definitions, implement a new syntax for adding / removing tables from the vschema: `alter vschema add table test_table` `alter vschema drop table test_table` Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
…scripts, they will be executed by the user using lmysql.sh Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Michael Hebelka <michael.hebelka@sharpspring.com>
Enhance local example
vschema alter syntax
…-election Do not reuse a consul lock
Add scope to oauth token for gcs backup storage client
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
config: rm secure_file_priv & innodb_support_xa
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
helm: add missing default
The tablet kills were inverted between 100 vs 200 Also added a delete of all data on teardown Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
…mples Adds removed vschema
local example: fix typos
Signed-off-by: Serguei Mourachov <serguei@slack-corp.com>
…fy-channel-builder Allow subclasses of GrpcClientFactory to modify channel builder
…faults. Signed-off-by: Michael Pawliszyn <mikepaw@squareup.com>
…-defaults Parents the parent pom of the standard sonatype oss pom for better de…
Signed-off-by: Michael Pawliszyn <mikepaw@squareup.com>
java: Bump SNAPSHOT version to 3.1.0-SNAPSHOT after Vitess release 3.0.
brirams
approved these changes
Dec 14, 2018
|
LGTM +1 |
rafael
approved these changes
Dec 14, 2018
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
tl;dr: all changes look 👍
Slack changes
Adds removed vschema
(for examples)
7f0ee4c Merge pull request Adds removed vschema vitessio/vitess#4434 from tinyspeck/add-vschema-local-examples
Stops reusing a consul lock in master election
8e64c77 (tag: v3.0.0-rc.1) Merge pull request Do not reuse a consul lock vitessio/vitess#4353 from tinyspeck/fix-for-consul-master-election
Adds support for vschema alter syntax
eccf912 Merge pull request vschema alter syntax vitessio/vitess#4412 from tinyspeck/vschema-alter-syntax
vtctl support for vschema ddls
3b2294b Merge pull request vtctl support for vschema ddls vitessio/vitess#4385 from tinyspeck/vtctl-support-vschema-ddls
remove NFS folder syncing as default in vagrant config
fb8c46f Merge pull request [vagrant] Remove NFS option from VM synced folder vitessio/vitess#4424 from tinyspeck/brirams/remote_nfs_from_vagrantfile
Non-Slack changes
java: Bump SNAPSHOT version to 3.1.0-SNAPSHOT after Vitess release 3.0
safe because it's java stuff
eb5a5e0 (vupstream/master, vup_mas) Merge pull request java: Bump SNAPSHOT version to 3.1.0-SNAPSHOT after Vitess release 3.0. vitessio/vitess#4453 from mpawliszyn/mikepaw.update-snapshot
Parents the parent pom of the standard sonatype oss pom for better defaults
safe, more java stuff
84a3524 Merge pull request Parents the parent pom of the standard sonatype oss pom for better de… vitessio/vitess#4447 from mpawliszyn/mikepaw.better-maven-defaults
Allow subclasses of GrpcClientFactory to modify channel builder
safe bc java grpc client work
be97451 Merge pull request Allow subclasses of GrpcClientFactory to modify channel builder vitessio/vitess#4439 from smourachov/grpc-java-allow-modify-channel-builder
local example: fix typos
safe: examples
4f192d1 (tag: v3.0.0-rc.3, tag: v3.0) Merge pull request local example: fix typos vitessio/vitess#4438 from planetscale/ss-local-fix
helm: add missing default.
safe helm support
43aa7e9 (tag: v3.0.0-rc.2) Merge pull request helm: add missing default vitessio/vitess#4437 from planetscale/ss-default
Removes secure_file_priv and innodb_support_xa from master mysql 56 cnf
safe, config change used in examples
8c567f7 Merge pull request config: rm secure_file_priv & innodb_support_xa vitessio/vitess#4419 from derekperkins/remove-mycnf
Add scope to oauth token for gcs backup storage client
safe, updates auth flag for GCS based backup storage
ecb972f Merge pull request Add scope to oauth token for gcs backup storage client vitessio/vitess#4433 from Santiclause/gcs-backup-scope
Enhance local example
safe, example code
2a95023 Merge pull request Enhance local example vitessio/vitess#4429 from planetscale/ds-add-to-example
WIP: adapt helm/k8s example to run locally
safe, updates helm/k8s example
f2118cc Merge pull request adapt helm/k8s example to run locally vitessio/vitess#4427 from planetscale/ds-local-example
Source material