Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Merge upstream 2019-04-25 #130

Merged
merged 158 commits into from
Apr 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
0056588
Download macOS binaries for etcd and consul.
gak Feb 19, 2019
2c63167
Refactor region to aliases
rafael Mar 28, 2019
20c3f4b
Add support for json output in vtctl TopoCat command
dasl- Apr 1, 2019
196669a
Document that left-joins don't recognize transitive relationships in …
dweitzman Apr 1, 2019
5f8dc86
Adds tests and fixes typo in vtctl command
rafael Apr 2, 2019
c333aca
Fixes for vagrant setup
rafael Apr 2, 2019
3818c0b
Merge pull request #4782 from tinyspeck/fixes-for-vm
rafael Apr 2, 2019
3e62b1b
Limit the connection retry delay to no longer than the healthcheck ti…
mpawliszyn Apr 2, 2019
c36bd50
Merge pull request #4773 from dweitzman/document_left_join_aggr_limit…
sougou Apr 3, 2019
85b2d07
Merge pull request #4775 from mpawliszyn/mikepaw.limit-healthcheck-ba…
mpawliszyn Apr 3, 2019
f81ef4a
Update documentation for CellsAlias commands
rafael Apr 3, 2019
0d5a6e9
Merge pull request #4767 from tinyspeck/refactor-region-to-aliases
rafael Apr 3, 2019
1c09d46
Respect ZK_JAVA_OPTS env in zksrv.sh
adsr Apr 3, 2019
0604d56
orchestrator: Add more detail to error messages.
enisoc Apr 4, 2019
256edd7
Merge pull request #4788 from enisoc/orc-error-info
deepthi Apr 5, 2019
0694a07
vplayer: filter based on target
sougou Feb 24, 2019
4244cec
vreplication: convert to always use select
sougou Feb 25, 2019
ac0a347
vplayer: table initialization phase
sougou Mar 2, 2019
eec48b9
vreplication: address review comments
sougou Apr 7, 2019
1dc74aa
Merge pull request #4736 from planetscale/ss-vrepl
sougou Apr 7, 2019
a434720
xtrabackup implementation with testcases
deepthi Mar 2, 2019
9c3cd81
implement vttablet staying in SERVING state during backup
deepthi Mar 7, 2019
9a647b9
create MANIFEST, use vterrors
deepthi Mar 13, 2019
c1fc395
add xtrabackup to docker containers
deepthi Mar 13, 2019
3d8442a
add position and cmd line params to manifest
deepthi Mar 14, 2019
c3c48be
fix failing test by putting it in a separate suite
deepthi Mar 15, 2019
706807f
fix scoping bug that causes backup to hang
deepthi Mar 21, 2019
b8112ed
add xtrabackup_user command line option, use vterrors, fix staticchec…
deepthi Mar 21, 2019
3b96754
make MySQL56 default flavor for parsing replication position while re…
deepthi Mar 23, 2019
359fbe2
pass --target-dir to xtrabackup
deepthi Mar 23, 2019
d6e446f
handle gtid correctly during restore, add logging for testing
deepthi Mar 27, 2019
39c859b
better option documentation, make xtrabackupUser a required param for…
deepthi Mar 28, 2019
d6dc854
testcase to verify that GTIDSet is handled correctly by xtrabackup ba…
deepthi Mar 29, 2019
e918b5c
detect MySQL_FLAVOR from a db connection instead of env variable
deepthi Mar 29, 2019
1cd2ad1
use xtrabackup exit status to determine success/failure, address othe…
deepthi Apr 8, 2019
a3b7b04
MySQL 8.0 should be started with mysqlx=0
deepthi Mar 14, 2019
595448a
add auth config, add MySQL80 flavor handling in mysqld
deepthi Mar 15, 2019
d409c44
add mysql80 flavor to vttest
deepthi Apr 9, 2019
0912fbe
Update lite images to retry pulling GPG keys
Apr 9, 2019
1f6a2ee
fix typo of doc/VTTabletModes.md
SataQiu Apr 9, 2019
6df9ebe
Merge pull request #4795 from SataQiu/fix-20190409
deepthi Apr 9, 2019
f0fc5c2
add support to set -queryserver-passthrough-dmls and other tablet params
demmer Apr 9, 2019
3fed760
add support for explicit transactions
demmer Apr 9, 2019
8799db9
Merge pull request #4725 from planetscale/ds-mysql80-docker
derekperkins Apr 9, 2019
ba9eecc
add db_name to _vt.vreplication table
deepthi Mar 19, 2019
7d28af4
set dbName correctly on vreplication engine
deepthi Mar 23, 2019
26b6416
fix unit test for _vt.vreplication changes
deepthi Mar 24, 2019
0985ddd
add db_name to _vt.local_metadata and _vt.shard_metadata
deepthi Mar 25, 2019
baeb4f2
migration for vreplication, local_metadata and shard_metadata tables
deepthi Mar 29, 2019
bfdaee7
testcase with multiple keyspaces on same mysql
deepthi Apr 9, 2019
c0e1b8d
add dbName to new binlogplayer func to fix test after rebase
deepthi Apr 10, 2019
738f988
fix some spell problems of doc/ServerConfiguration.md doc/TopologySer…
SataQiu Apr 10, 2019
eea2ebe
Merge pull request #4794 from planetscale/dk-update-lite-docker-builds
dkhenry Apr 10, 2019
8647276
Using const() defines constants together
xichengliudui Apr 10, 2019
56e8186
Merge pull request #4796 from tinyspeck/vtexplain-improvements
demmer Apr 10, 2019
666e492
Small bug: Comments and function names do not match
xichengliudui Apr 11, 2019
f3bfe8b
Merge pull request #4695 from planetscale/ds-xtrabackup
deepthi Apr 11, 2019
4c355fc
fix migration
deepthi Apr 12, 2019
4033ed3
change init sql to work with both mysql 5.7 and mysql 8.0
deepthi Apr 12, 2019
d7c7feb
Merge pull request #4800 from SataQiu/fix-20190410
deepthi Apr 12, 2019
4d3d859
Merge pull request #4784 from adsr/zk_java_opts
deepthi Apr 12, 2019
02dfd83
Merge pull request #4685 from gak/bootstrap-macos-binaries
deepthi Apr 12, 2019
2d869ae
fix spelling errors of doc/VitessSequences.md doc/VitessTransportSecu…
SataQiu Apr 15, 2019
5970565
Merge pull request #4808 from SataQiu/fix-typo-20190415
sougou Apr 15, 2019
dddfc6f
fix some grammar issues
SataQiu Apr 15, 2019
bdd7ab7
Add support for json output in vtctl TopoCat command, updates from re…
dasl- Apr 15, 2019
a1d44b1
use background context to restart mysqld after backup. fix and add lo…
deepthi Apr 12, 2019
6235187
Add vttablet option to set super_read_only during planned reparent
mlauter Apr 9, 2019
cbcd6e8
Merge pull request #4813 from xichengliudui/small-bug
sougou Apr 16, 2019
6b9d77c
Merge pull request #4812 from xichengliudui/addconstants
sougou Apr 16, 2019
18630db
Merge pull request #4809 from SataQiu/fix-20190415
sougou Apr 16, 2019
c19fd32
Merge pull request #4805 from planetscale/ds-4538
sougou Apr 16, 2019
d293628
Merge pull request #4746 from dasl-/json
sougou Apr 16, 2019
7b1aa2e
test xtrabackup with mysql 8.0, add validation for expected gtid format
deepthi Apr 12, 2019
569e90e
install xtrabackup 8.0 on percona80 image
deepthi Apr 12, 2019
b383d00
Merge pull request #4727 from planetscale/ds-vt-dbname
sougou Apr 16, 2019
d2d8820
Merge pull request #4803 from planetscale/ds-xb-mysql80
rafael Apr 16, 2019
068c5f8
Apply vttablet command line flags regardless of whether the tablet is…
dasl- Apr 16, 2019
139b49e
fix spelling mistake: conjonction -> conjunction
SataQiu Apr 17, 2019
05c3c0a
omit misleading begin/commit logs in autocommit transactions
demmer Apr 17, 2019
7329452
Add strong warning against production use to example init_db.sql file…
teejae Apr 17, 2019
0507bd2
retest
SataQiu Apr 17, 2019
66a8fec
Merge pull request #4819 from tinyspeck/vttablet-autocommit-no-mislea…
sougou Apr 17, 2019
4457a36
Merge pull request #4818 from SataQiu/fix-20190417
sougou Apr 17, 2019
f23777d
fix bug discovered by tests
dasl- Apr 17, 2019
a4a75e4
Merge pull request #4811 from mlauter/master
sougou Apr 17, 2019
111d42e
Merge pull request #4814 from dasl-/managed-tablet
sougou Apr 17, 2019
1d2d111
vstreamer: VStreamRows rpc method
sougou Mar 3, 2019
3d30558
vstreamer: rowStreamer for source tablet
sougou Mar 4, 2019
d3d870d
vplayer: minor tweaks
sougou Mar 10, 2019
b749078
vplayer: refactor query generation
sougou Mar 10, 2019
c096533
vplayer: copyTables initial cut
sougou Mar 11, 2019
de5a2e3
vplayer: copyTables: basic functionality working
sougou Mar 11, 2019
bfddb58
vplayer: split: vreplicator, vplayer, vcopier
sougou Mar 15, 2019
9692bf9
vplayer: improve naming of some types & vars
sougou Mar 16, 2019
ec25345
vplayer: handle lastpk based replication
sougou Mar 17, 2019
231c7de
vplayer: don't blindly update state to 'Running'
sougou Mar 17, 2019
91bdf93
vplayer: prep for integrating vcopier and vplayer
sougou Mar 18, 2019
856a196
vstreamer: rowstreamer locks the table
sougou Mar 18, 2019
9b49699
vplayer: more robust position tracking
sougou Mar 18, 2019
9c15bbe
vplayer: copier player dance
sougou Mar 18, 2019
e7e2b5f
vplayer: test copy and fix bugs
sougou Mar 24, 2019
11a8b30
vcopier: more tests and a few tweaks
sougou Mar 28, 2019
4636888
vstreamer: delete obsolete test
sougou Apr 7, 2019
1b8c596
vreplication: address review comments
sougou Apr 10, 2019
1fba59e
vreplication: address more review comments
sougou Apr 17, 2019
b808777
vreplication: fix after rebase
sougou Apr 17, 2019
788434f
sqlparser: support for SHOW SCHEMAS
mcuadros Apr 17, 2019
1a62d2c
normalizer: do not normalize in order by
Apr 18, 2019
e991740
normalizer: do not normalize in group by
Apr 18, 2019
fffea26
Adds timeouts for all kinds of statements. Power to the clients!
rafael Apr 18, 2019
228eec4
fix spelling mistakes of doc
SataQiu Apr 19, 2019
07f7fab
make the logging of stacks in errors an opt-in behavior
demmer Apr 19, 2019
6576d18
properly suppress begin...commit in autocommit logs
demmer Apr 19, 2019
5472930
fix tests to handle the opt-in stack logging behavior
demmer Apr 19, 2019
575395c
remove misleading BEGIN / COMMIT QueryStats entries as well
demmer Apr 19, 2019
bc37021
Merge pull request #4826 from tinyspeck/log-error-stacks-optional
demmer Apr 19, 2019
8e63c81
vreplication: address review comments
sougou Apr 19, 2019
6b34d20
Merge pull request #4791 from planetscale/ss-vrepl
sougou Apr 21, 2019
1ab972b
vreplication: SplitClone & VerticalSplitClone
sougou Apr 5, 2019
cf1e37d
Using const() defines constants together (part:2)
xichengliudui Apr 11, 2019
f0a9bc7
Using const() defines constants together
xichengliudui Apr 11, 2019
ba7aad0
Merge pull request #4825 from SataQiu/fix-20190419
sougou Apr 22, 2019
21167f1
Merge pull request #4824 from tinyspeck/adds-timeouts-for-all-queries
sougou Apr 22, 2019
eb85db2
Merge pull request #4822 from HubSpot/order-by-column-position
sougou Apr 22, 2019
78058b8
vreplication: refresh masters at end of splitclone
sougou Apr 22, 2019
b827ab1
default value for db_name to allow rolling deployment of multi-schema…
deepthi Apr 22, 2019
c36e359
staticcheck fixes
deepthi Apr 19, 2019
c585c8f
Merge pull request #4829 from planetscale/ss-vcopy
sougou Apr 23, 2019
0879118
vschema: routing rules proto changes
sougou Apr 9, 2019
3f8848a
vschema: routing rules in vindexes.VSchema
sougou Apr 10, 2019
e0f79ce
query routing: multi-table plan options
sougou Apr 16, 2019
80bd0c2
query routing: add table substitutions
sougou Apr 17, 2019
3c45413
query routing: vschema and DML tests
sougou Apr 18, 2019
11ed1a1
query routing: tests
sougou Apr 19, 2019
6c55f27
Merge pull request #4785 from mcuadros/show-schemas
sougou Apr 23, 2019
75e0822
rename flaky test
deepthi Apr 23, 2019
a92a0a7
Merge pull request #4830 from planetscale/ds-vtdb
sougou Apr 24, 2019
f04b785
vstreamer: bug fix on mysql connection
sougou Apr 24, 2019
c4c5712
tabletmanager: only report healthy if a health check has succeeded re…
dweitzman Apr 22, 2019
8479bbd
Merge pull request #4837 from planetscale/ss-vfix
sougou Apr 24, 2019
46b769c
Merge pull request #4832 from dweitzman/check_last_healthy_time_strea…
sougou Apr 24, 2019
c46ddcc
Merge pull request #4820 from xichengliudui/update-const-patr3
sougou Apr 24, 2019
363878a
Merge pull request #4816 from xichengliudui/update-go-const
sougou Apr 24, 2019
b50f57c
fix some spelling mistakes
SataQiu Apr 24, 2019
7fc5662
vreplication: address review comments
sougou Apr 25, 2019
7a08ada
Merge pull request #4836 from SataQiu/fix-20190424
sougou Apr 25, 2019
1a909ed
Merge pull request #4827 from tinyspeck/vttablet-autocommit-no-mislea…
demmer Apr 25, 2019
eda3e15
Merge pull request #4833 from planetscale/ss-vrepl
sougou Apr 25, 2019
848afdc
vreplication: add reference type to vschema
sougou Apr 20, 2019
0291531
vreplication: prep code for SelectReference
sougou Apr 20, 2019
90e765e
vreplication: planbuilder for reference tables
sougou Apr 20, 2019
2490456
Merge pull request #4831 from planetscale/ds-sc2
sougou Apr 25, 2019
1f0718d
Fix docker build issues for MySQL 8
msolters Apr 25, 2019
9e982ea
Fix Percona 8.0 docker build process
msolters Apr 25, 2019
439b1cf
Merge pull request #4839 from planetscale/ss-vrepl
sougou Apr 25, 2019
fac8498
Merge pull request #4840 from msolters/mysql-8-docker-fixes
deepthi Apr 25, 2019
608f132
Merge remote-tracking branch 'upstream/master' into sa-merge-upstream…
Apr 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# 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,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down Expand Up @@ -186,7 +186,7 @@ docker_base_mysql56:

docker_base_mysql80:
chmod -R o=g *
docker build -f docker/base/Dockerfile.mysql56 -t vitess/base:mysql80 .
docker build -f docker/base/Dockerfile.mysql80 -t vitess/base:mysql80 .

docker_base_mariadb:
chmod -R o=g *
Expand All @@ -206,7 +206,7 @@ docker_base_percona57:

docker_base_percona80:
chmod -R o=g *
docker build -f docker/base/Dockerfile.percona57 -t vitess/base:percona80 .
docker build -f docker/base/Dockerfile.percona80 -t vitess/base:percona80 .

# Run "make docker_lite PROMPT_NOTICE=false" to avoid that the script
# prompts you to press ENTER and confirm that the vitess/base image is not
Expand Down
32 changes: 23 additions & 9 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,22 @@ function install_etcd() {
local version="$1"
local dist="$2"

case $(uname) in
Linux) local platform=linux; local ext=tar.gz;;
Darwin) local platform=darwin; local ext=zip;;
esac

download_url=https://github.com/coreos/etcd/releases/download
tar_file="etcd-${version}-linux-amd64.tar.gz"
file="etcd-${version}-${platform}-amd64.${ext}"

wget "$download_url/$version/$tar_file"
tar xzf "$tar_file"
rm "$tar_file"
ln -snf "$dist/etcd-${version}-linux-amd64/etcd" "$VTROOT/bin/etcd"
wget "$download_url/$version/$file"
if [ "$ext" = "tar.gz" ]; then
tar xzf "$file"
else
unzip "$file"
fi
rm "$file"
ln -snf "$dist/etcd-${version}-${platform}-amd64/etcd" "$VTROOT/bin/etcd"
}
install_dep "etcd" "v3.3.10" "$VTROOT/dist/etcd" install_etcd

Expand All @@ -211,9 +220,14 @@ function install_consul() {
local version="$1"
local dist="$2"

case $(uname) in
Linux) local platform=linux;;
Darwin) local platform=darwin;;
esac

download_url=https://releases.hashicorp.com/consul
wget "${download_url}/${version}/consul_${version}_linux_amd64.zip"
unzip "consul_${version}_linux_amd64.zip"
wget "${download_url}/${version}/consul_${version}_${platform}_amd64.zip"
unzip "consul_${version}_${platform}_amd64.zip"
ln -snf "$dist/consul" "$VTROOT/bin/consul"
}
install_dep "Consul" "1.4.0" "$VTROOT/dist/consul" install_consul
Expand Down Expand Up @@ -325,13 +339,13 @@ if [ "$BUILD_TESTS" == 1 ] ; then
echo "MYSQL_FLAVOR environment variable not set. Using default: $MYSQL_FLAVOR"
fi
case "$MYSQL_FLAVOR" in
"MySQL56")
"MySQL56" | "MySQL80")
myversion="$("$VT_MYSQL_ROOT/bin/mysql" --version)"
[[ "$myversion" =~ Distrib\ 5\.[67] || "$myversion" =~ Ver\ 8\. ]] || fail "Couldn't find MySQL 5.6+ in $VT_MYSQL_ROOT. Set VT_MYSQL_ROOT to override search location."
echo "Found MySQL 5.6+ installation in $VT_MYSQL_ROOT."
;;

"MariaDB" | "MariaDB103" )
"MariaDB" | "MariaDB103")
myversion="$("$VT_MYSQL_ROOT/bin/mysql" --version)"
[[ "$myversion" =~ MariaDB ]] || fail "Couldn't find MariaDB in $VT_MYSQL_ROOT. Set VT_MYSQL_ROOT to override search location."
echo "Found MariaDB installation in $VT_MYSQL_ROOT."
Expand Down
21 changes: 15 additions & 6 deletions config/init_db.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# This file is executed immediately after mysql_install_db,
# to initialize a fresh data directory.

##########################################
###############################################################################
# WARNING: This sql is *NOT* safe for production use,
# as it contains default well-known users and passwords.
# Care should be taken to change these users and passwords
# for production.
###############################################################################

###############################################################################
# Equivalent of mysql_secure_installation
##########################################
###############################################################################

# Changes during the init db should not make it to the binlog.
# They could potentially create errant transactions on replicas.
Expand All @@ -17,9 +24,9 @@ DELETE FROM mysql.user WHERE User = 'root' AND Host != 'localhost';
# Remove test database.
DROP DATABASE IF EXISTS test;

##########################################
###############################################################################
# Vitess defaults
##########################################
###############################################################################

# Vitess-internal database.
CREATE DATABASE IF NOT EXISTS _vt;
Expand All @@ -28,12 +35,14 @@ CREATE DATABASE IF NOT EXISTS _vt;
CREATE TABLE IF NOT EXISTS _vt.local_metadata (
name VARCHAR(255) NOT NULL,
value VARCHAR(255) NOT NULL,
PRIMARY KEY (name)
db_name VARBINARY(255) NOT NULL,
PRIMARY KEY (db_name, name)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS _vt.shard_metadata (
name VARCHAR(255) NOT NULL,
value MEDIUMBLOB NOT NULL,
PRIMARY KEY (name)
db_name VARBINARY(255) NOT NULL,
PRIMARY KEY (db_name, name)
) ENGINE=InnoDB;

# Admin user with all privileges.
Expand Down
2 changes: 1 addition & 1 deletion config/mycnf/default-fast.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ innodb_flush_log_at_trx_commit = 2
innodb_flush_method = O_DIRECT
innodb_lock_wait_timeout = 20
innodb_log_buffer_size = 1M
innodb_log_file_size = 1M
innodb_log_file_size = 4M
innodb_log_files_in_group = 2
innodb_log_group_home_dir = {{.InnodbLogGroupHomeDir}}
innodb_max_dirty_pages_pct = 75
Expand Down
38 changes: 38 additions & 0 deletions config/mycnf/master_mysql80.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Options for enabling GTID
# https://dev.mysql.com/doc/refman/5.6/en/replication-gtids-howto.html
gtid_mode = ON
log_bin
log_slave_updates
enforce_gtid_consistency

# Crash-safe replication settings.
master_info_repository = TABLE
relay_log_info_repository = TABLE
relay_log_purge = 1
relay_log_recovery = 1

# Native AIO tends to run into aio-max-nr limit during test startup.
innodb_use_native_aio = 0

# Semi-sync replication is required for automated unplanned failover
# (when the master goes away). Here we just load the plugin so it's
# available if desired, but it's disabled at startup.
#
# If the -enable_semi_sync flag is used, VTTablet will enable semi-sync
# at the proper time when replication is set up, or when masters are
# promoted or demoted.
plugin-load = rpl_semi_sync_master=semisync_master.so;rpl_semi_sync_slave=semisync_slave.so

# When semi-sync is enabled, don't allow fallback to async
# if you get no ack, or have no slaves. This is necessary to
# prevent alternate futures when doing a failover in response to
# a master that becomes unresponsive.
rpl_semi_sync_master_timeout = 1000000000000000000
rpl_semi_sync_master_wait_no_slave = 1

# disable mysqlx
mysqlx = 0

# 8.0 changes the default auth-plugin to caching_sha2_password
default_authentication_plugin = mysql_native_password
secure_file_priv = NULL
2 changes: 1 addition & 1 deletion doc/ServerConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ VTTablet requires multiple user credentials to perform its tasks. Since it's req

**connection** parameters

* **db\_socket**: The unix socket to connect on. If this is specifed, host and port will not be used.
* **db\_socket**: The unix socket to connect on. If this is specified, host and port will not be used.
* **db\_host**: The host name for the tcp connection.
* **db\_port**: The tcp port to be used with the db\_host.
* **db\_charset**: Character set. Only utf8 or latin1 based character sets are supported.
Expand Down
4 changes: 2 additions & 2 deletions doc/TopologyService.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ all cells to route traffic. Note this is necessary to access the master in
another cell.

After the extension to two cells, the original topo service contains both the
global topology data, and the first cell topology data. The more symetrical
global topology data, and the first cell topology data. The more symmetrical
configuration we're after would be to split that original service into two: a
global one that only contains the global data (spread across both cells), and a
local one to the original cells. To achieve that split:
Expand All @@ -471,7 +471,7 @@ local one to the original cells. To achieve that split:
* Remove all remaining data in the global topology service that are in the old
local server root.

After this split, the configuration is completely symetrical:
After this split, the configuration is completely symmetrical:

* a global topology service, with servers in all cells. Only contains global
topology data about Keyspaces, Shards and VSchema. Typically it has 5 servers
Expand Down
2 changes: 1 addition & 1 deletion doc/VTTabletModes.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Specifically, the absence of a my.cnf file indicates to vttablet that it's conne

Even if a MySQL is remote, you can still make vttablet perform some management functions. They are as follows:

* `-disable_active_reparents`: If this flag is set, then any reparent or slave commands will not be allowed. These are InitShardMaster, PlannedReparent, PlannedReparent, EmergencyReparent, and ReparentTablet. In this mode, you should use the TabletExternallyReparented command to inform vitess of the current master.
* `-disable_active_reparents`: If this flag is set, then any reparent or slave commands will not be allowed. These are InitShardMaster, PlannedReparent, EmergencyReparent, and ReparentTablet. In this mode, you should use the TabletExternallyReparented command to inform vitess of the current master.
* `-master_connect_retry`: This value is give to mysql when it connects a slave to the master as the retry duration parameter.
* `-enable_replication_reporter`: If this flag is set, then vttablet will transmit replica lag related information to the vtgates, which will allow it to balance load better. Additionally, enabling this will also cause vttablet to restart replication if it was stopped. However, it will do this only if -disable_active_reparents was not turned on.
* `-enable_semi_sync`: This option will automatically enable semi-sync on new replicas as well as on any tablet that transitions into a replica type. This includes the demotion of a master to a replica.
Expand Down
10 changes: 5 additions & 5 deletions doc/VitessApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ The following table lists the methods in each group and links to more detail abo
<tr><td class="api-method-summary-group" colspan="2">v3 API (alpha)</td></tr>
<tr>
<td><code><a href="#execute">Execute</a></code></td>
<td>Execute tries to route the query to the right shard. It depends on the query and bind variables to provide enough information in conjonction with the vindexes to route the query.</td>
<td>Execute tries to route the query to the right shard. It depends on the query and bind variables to provide enough information in conjunction with the vindexes to route the query.</td>
</tr>
<tr>
<td><code><a href="#streamexecute">StreamExecute</a></code></td>
<td>StreamExecute executes a streaming query based on shards. It depends on the query and bind variables to provide enough information in conjonction with the vindexes to route the query. Use this method if the query returns a large number of rows.</td>
<td>StreamExecute executes a streaming query based on shards. It depends on the query and bind variables to provide enough information in conjunction with the vindexes to route the query. Use this method if the query returns a large number of rows.</td>
</tr>
</table>
##Range-based Sharding
Expand Down Expand Up @@ -572,7 +572,7 @@ GetSrvKeyspace returns a SrvKeyspace object (as seen by this vtgate). This metho
##v3 API (alpha)
### Execute

Execute tries to route the query to the right shard. It depends on the query and bind variables to provide enough information in conjonction with the vindexes to route the query.
Execute tries to route the query to the right shard. It depends on the query and bind variables to provide enough information in conjunction with the vindexes to route the query.

#### Request

Expand Down Expand Up @@ -604,7 +604,7 @@ Execute tries to route the query to the right shard. It depends on the query and

### StreamExecute

StreamExecute executes a streaming query based on shards. It depends on the query and bind variables to provide enough information in conjonction with the vindexes to route the query. Use this method if the query returns a large number of rows.
StreamExecute executes a streaming query based on shards. It depends on the query and bind variables to provide enough information in conjunction with the vindexes to route the query. Use this method if the query returns a large number of rows.

#### Request

Expand Down Expand Up @@ -839,7 +839,7 @@ Field describes a single column returned by a query
| <code>org_name</code> <br>string| |
| <code>column_length</code> <br>uint32| column_length is really a uint32. All 32 bits can be used. |
| <code>charset</code> <br>uint32| charset is actually a uint16. Only the lower 16 bits are used. |
| <code>decimals</code> <br>uint32| decimals is actualy a uint8. Only the lower 8 bits are used. |
| <code>decimals</code> <br>uint32| decimals is actually a uint8. Only the lower 8 bits are used. |
| <code>flags</code> <br>uint32| flags is actually a uint16. Only the lower 16 bits are used. |

### query.QueryResult
Expand Down
2 changes: 1 addition & 1 deletion doc/VitessSequences.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Let's start by looking at the MySQL auto-increment feature:

An early design was to use a single unsharded database and a table with an
auto-increment value to generate new values. However, this has serious
limitations, in particular throughtput, and storing one entry for each value in
limitations, in particular throughput, and storing one entry for each value in
that table, for no reason.

So we decided instead to base sequences on a MySQL table, and use a single value
Expand Down
2 changes: 1 addition & 1 deletion doc/VitessTransportSecurityModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ When using gRPC transport, Vitess can use the usual TLS security features
* grpc\_cert, grpc\_key: server cert and key to use.
* grpc\_ca (optional): client cert chains to trust. If specified, the client
must use a certificate signed by one ca in the provided file.
* A Vitess go client can be configured with symetrical parameters to enable TLS:
* A Vitess go client can be configured with symmetrical parameters to enable TLS:
* ...\_grpc\_ca: list of server cert signers to trust.
* ...\_grpc\_server\_name: name of the server cert to trust, instead of the
hostname used to connect.
Expand Down
4 changes: 2 additions & 2 deletions doc/meetups_notes/06-14-2018.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Meeting started at 8am PDT on Zoom.

### New Vitess Logo / Logo Changes

We kicked off the meeting talking about the first agenda item, *Vitess's new logo*. The new logo was mooted in the first place because of its current similarites to [Vivid IT Corp](https://www.vividitcorp.com/).
We kicked off the meeting talking about the first agenda item, *Vitess's new logo*. The new logo was mooted in the first place because of its current similarities to [Vivid IT Corp](https://www.vividitcorp.com/).

Based on [logos](https://docs.google.com/forms/d/e/1FAIpQLScp5hGY98vpRMxs3oRT8c-XJ_b04ei6uCFiYiQe3nDunFbyuw/viewform) created with CNCF's help, logos 1 and 4 got the highest no of votes.

Expand Down Expand Up @@ -124,7 +124,7 @@ We are looking for 5 engineers. Job scope at [our site](https://planetscale.com/

We discussed that we need to work on / update official roadmap.

Question from Ameet about whether there's anything on ther roadmap for online backups, because increasingly backups take more time.
Question from Ameet about whether there's anything on the roadmap for online backups, because increasingly backups take more time.

Sugu says there are 500 lines of code re backup. But we will discuss this in our roadmap discussions.

Expand Down
2 changes: 1 addition & 1 deletion doc/vtctlReference.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ Validates that all nodes reachable from the specified keyspace are consistent.

### WaitForDrain

Blocks until no new queries were observed on all tablets with the given tablet type in the specifed keyspace. This can be used as sanity check to ensure that the tablets were drained after running vtctl MigrateServedTypes and vtgate is no longer using them. If -timeout is set, it fails when the timeout is reached.
Blocks until no new queries were observed on all tablets with the given tablet type in the specified keyspace. This can be used as sanity check to ensure that the tablets were drained after running vtctl MigrateServedTypes and vtgate is no longer using them. If -timeout is set, it fails when the timeout is reached.

#### Example

Expand Down
10 changes: 8 additions & 2 deletions docker/bootstrap/Dockerfile.mariadb
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
FROM vitess/bootstrap:common

# Install MariaDB 10
RUN apt-get update \
RUN apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
bzip2 \
mariadb-server \
libmariadbclient-dev \
&& rm -rf /var/lib/apt/lists/*
libdbd-mysql-perl \
rsync \
libev4 \
&& rm -rf /var/lib/apt/lists/* \
&& wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.13/binary/debian/stretch/x86_64/percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb \
&& dpkg -i percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb \
&& rm -f percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb

# Bootstrap Vitess
WORKDIR /vt/src/vitess.io/vitess
Expand Down
9 changes: 6 additions & 3 deletions docker/bootstrap/Dockerfile.mysql56
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ FROM vitess/bootstrap:common
# Install MySQL 5.6
RUN for i in $(seq 1 10); do apt-key adv --no-tty --recv-keys --keyserver pool.sks-keyservers.net 5072E1F5 && break; done && \
add-apt-repository 'deb http://repo.mysql.com/apt/debian/ stretch mysql-5.6' && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev && \
rm -rf /var/lib/apt/lists/*
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev libdbd-mysql-perl rsync libev4 && \
rm -rf /var/lib/apt/lists/* && \
wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.13/binary/debian/stretch/x86_64/percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb && \
dpkg -i percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb && \
rm -f percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb

# Bootstrap Vitess
WORKDIR /vt/src/vitess.io/vitess
Expand Down
9 changes: 6 additions & 3 deletions docker/bootstrap/Dockerfile.mysql57
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ FROM vitess/bootstrap:common
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gnupg dirmngr ca-certificates && \
for i in $(seq 1 10); do apt-key adv --no-tty --recv-keys --keyserver ha.pool.sks-keyservers.net 5072E1F5 && break; done && \
add-apt-repository 'deb http://repo.mysql.com/apt/debian/ stretch mysql-5.7' && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev && \
rm -rf /var/lib/apt/lists/*
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev libdbd-mysql-perl rsync libev4 && \
rm -rf /var/lib/apt/lists/* && \
wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.13/binary/debian/stretch/x86_64/percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb && \
dpkg -i percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb && \
rm -f percona-xtrabackup-24_2.4.13-1.stretch_amd64.deb

# Bootstrap Vitess
WORKDIR /vt/src/vitess.io/vitess
Expand Down
13 changes: 8 additions & 5 deletions docker/bootstrap/Dockerfile.mysql80
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
FROM vitess/bootstrap:common

# Install MySQL 5.7
# Install MySQL 8.0
RUN for i in $(seq 1 10); do apt-key adv --no-tty --recv-keys --keyserver ha.pool.sks-keyservers.net 8C718D3B5072E1F5 && break; done && \
add-apt-repository 'deb http://repo.mysql.com/apt/debian/ stretch mysql-8.0' && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev && \
rm -rf /var/lib/apt/lists/*
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev libdbd-mysql-perl rsync libev4 && \
rm -rf /var/lib/apt/lists/* && \
wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-8.0.4/binary/debian/stretch/x86_64/percona-xtrabackup-80_8.0.4-1.stretch_amd64.deb && \
dpkg -i percona-xtrabackup-80_8.0.4-1.stretch_amd64.deb && \
rm -f percona-xtrabackup-80_8.0.4-1.stretch_amd64.deb

# Bootstrap Vitess
WORKDIR /vt/src/vitess.io/vitess


ENV MYSQL_FLAVOR MySQL56
ENV MYSQL_FLAVOR MySQL80
USER vitess
RUN ./bootstrap.sh
Loading