Skip to content
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
20181214-merge-upstream
Dec 14, 2018
Merged

Sync with upstream vitess; 2018-12-14#120
setassociative merged 50 commits intomasterfrom
20181214-merge-upstream

Conversation

@setassociative
Copy link
Copy Markdown

tl;dr: all changes look 👍

Slack changes

Non-Slack changes

Source material

$ git log tinyspeck/master..upstream/master --merges --oneline
eb5a5e0e4 (upstream/master) Merge pull request #4453 from mpawliszyn/mikepaw.update-snapshot
84a352400 Merge pull request #4447 from mpawliszyn/mikepaw.better-maven-defaults
be9745195 Merge pull request #4439 from smourachov/grpc-java-allow-modify-channel-builder
4f192d100 (tag: v3.0.0-rc.3, tag: v3.0) Merge pull request #4438 from planetscale/ss-local-fix
7f0ee4c74 Merge pull request #4434 from tinyspeck/add-vschema-local-examples
43aa7e934 (tag: v3.0.0-rc.2) Merge pull request #4437 from planetscale/ss-default
8c567f765 Merge pull request #4419 from derekperkins/remove-mycnf
ecb972f2a Merge pull request #4433 from Santiclause/gcs-backup-scope
8e64c77c0 (tag: v3.0.0-rc.1) Merge pull request #4353 from tinyspeck/fix-for-consul-master-election
eccf91289 Merge pull request #4412 from tinyspeck/vschema-alter-syntax
2a950238d Merge pull request #4429 from planetscale/ds-add-to-example
f2118cc41 Merge pull request #4427 from planetscale/ds-local-example
3b2294b7e Merge pull request #4385 from tinyspeck/vtctl-support-vschema-ddls
fb8c46f78 Merge pull request #4424 from tinyspeck/brirams/remote_nfs_from_vagrantfile

Rafael Chacon and others added 30 commits November 8, 2018 16:47
* 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
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>
Rafael Chacon and others added 20 commits December 7, 2018 15:34
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Michael Hebelka <michael.hebelka@sharpspring.com>
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>
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>
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.
@rafael
Copy link
Copy Markdown

rafael commented Dec 14, 2018

LGTM +1

@setassociative setassociative merged commit 06241e2 into master Dec 14, 2018
@setassociative setassociative deleted the 20181214-merge-upstream branch December 14, 2018 22:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants