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

Slack vitess 2019.08.26.r0 #137

Merged
merged 220 commits into from
Sep 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
220 commits
Select commit Hold shift + click to select a range
30cda05
support for the ComPrepare
dcadevil Jan 15, 2019
91f73b1
support for the MySQL prepare command protocol
dcadevil Jan 16, 2019
85f6d74
add missing function implementation
dcadevil Jan 16, 2019
6024566
delete unused code
dcadevil Jan 16, 2019
25d1643
add missing function implementation
dcadevil Jan 16, 2019
9f0e7c3
add missing function implementation
dcadevil Jan 16, 2019
24d0dd0
add comments
dcadevil Jan 17, 2019
33188c7
remove unneeded vitess-specific keywords used for show statements
demmer Nov 24, 2018
2d92543
v3: support overlapping multi-column vindexes
sougou Feb 24, 2019
2393ff7
Merge branch 'master' into prepare
dcadevil Apr 1, 2019
ed00790
Merge branch 'prepare' of git://github.com/tiglabs/vitess into tiglab…
deepthi Jun 17, 2019
82c5e90
fix compile errors after merge
deepthi Jun 17, 2019
4128986
vtclient: Add sequential id generation and throttling
Jun 18, 2019
24ea99f
Merge remote-tracking branch 'origin/master' into tiglabs-prepare
saifalharthi Jun 28, 2019
9ceb1f4
Merge remote-tracking branch 'origin/master' into tiglabs-prepare
saifalharthi Jun 30, 2019
e523677
Merge remote-tracking branch 'origin/master' into tiglabs-prepare
saifalharthi Jul 10, 2019
8d641ee
Added test for ComPrepare
saifalharthi Jul 15, 2019
96ed068
added few more tests in query_test
saifalharthi Jul 15, 2019
70096dd
Merge remote-tracking branch 'origin/master' into tiglabs-prepare
saifalharthi Jul 16, 2019
1470f76
Added executor tests. They are faulty now.
saifalharthi Jul 17, 2019
698243b
Added python end to end test
saifalharthi Jul 20, 2019
0d39607
Fix error message
saifalharthi Jul 20, 2019
bc1ac07
Added test for TestComStmtExecute
saifalharthi Jul 22, 2019
b72f38b
Merge remote-tracking branch 'origin/master' into tiglabs-prepare
saifalharthi Jul 22, 2019
d278419
Add Executor test for DML
saifalharthi Jul 22, 2019
69729e9
Added Excutor test for select
saifalharthi Jul 22, 2019
a51fabc
Added Executor test for select
saifalharthi Jul 22, 2019
387cb98
Merge branch 'tiglabs-prepare' of github.com:planetscale/vitess into …
saifalharthi Jul 22, 2019
ed69725
Added mysql-connector dependency
saifalharthi Jul 23, 2019
c55be51
Added dependency to bootstrap.sh and edited python test
saifalharthi Jul 23, 2019
85a4f18
Updated TestComPrepare test
saifalharthi Jul 24, 2019
6a01fe0
Replaced etcd2 with zk for end to end tests
saifalharthi Jul 24, 2019
611820a
Set correct value for topo-server
saifalharthi Jul 24, 2019
786f7d8
Fix TestTypeError
saifalharthi Jul 24, 2019
04c1100
Edit utils.py
saifalharthi Jul 24, 2019
fd3caf2
Adjusted castFromNunmeric() to return only Value instead of Value and…
Jul 29, 2019
fed4d0e
change function name to be more descriptive, add link to mysql source…
deepthi Jul 30, 2019
ca871d3
also add a link to mysql server 8.0 implementation
deepthi Jul 30, 2019
5eb5830
Addressed partial comments
saifalharthi Jul 30, 2019
017cf57
Quick fix
saifalharthi Jul 30, 2019
c936f1a
add unit tests for 1-byte, 2-byte and 3-byte json string lengths
deepthi Jul 30, 2019
44e4439
add the vstream method to the VTGateConnection as well
Jul 30, 2019
c7bd871
Fixed Test Results in arithmetic_test.go to output correctly
Jul 30, 2019
1d4652d
Allow start local cluster using a provided tablet host name
kalfonso Jul 30, 2019
bfeed1e
Remove docs now hosted in vitessio/website
morgo Jul 31, 2019
61621b7
Merge pull request #5044 from planetscale/morgo-remove-docs
deepthi Aug 1, 2019
03217bd
Document test
saifalharthi Aug 1, 2019
a138a40
Merge remote-tracking branch 'origin/master' into tiglabs-prepare
saifalharthi Aug 1, 2019
af954f0
Merge pull request #5042 from kalfonso/kalfonso.190730-vttestserver-l…
sougou Aug 4, 2019
387685c
Merge pull request #5040 from HubSpot/vstream-for-vtgate-java
sougou Aug 4, 2019
aace051
Merge pull request #5039 from planetscale/ds-bl-event-json-doc
sougou Aug 4, 2019
3fb2944
migrater: initial cut
sougou Jul 2, 2019
f1d0958
migrater: migrate reads and validate
sougou Jul 5, 2019
bcf5787
migrater: test framework and initial test
sougou Jul 6, 2019
82cfaf1
migrater: quick cleanup
sougou Jul 6, 2019
fa295de
migrater: more tests
sougou Jul 7, 2019
0614231
migrater: more tests and cleanup
sougou Jul 7, 2019
12d92d8
migrater: refactor tests, and add more
sougou Jul 7, 2019
e359f3e
migrater: unit tests done
sougou Jul 8, 2019
da43f73
migrater: make table routing rules symmetrical
sougou Jul 8, 2019
19f23cc
migrater: add more fields to Journal
sougou Jul 8, 2019
61af9f7
migrater: add logs and comments
sougou Jul 8, 2019
1a88365
migrater: simplify parameters
sougou Jul 8, 2019
40ef5ff
migrater: use workflow as input
sougou Jul 8, 2019
0257cc0
migrater: auto-detect migration type
sougou Jul 9, 2019
3b44876
migrater: expose separate vtctl commands
sougou Jul 9, 2019
4b86104
migrater: address review comments
sougou Jul 20, 2019
dfda284
migrater: adddress more review comments
sougou Aug 4, 2019
9682ee0
Merge pull request #4981 from planetscale/ss-migrater
sougou Aug 4, 2019
9613875
vreplication: clean-up copy_state correctly
sougou Jul 21, 2019
20d8313
vreplication: ignore table not found error
sougou Aug 5, 2019
6daeec0
Update vendored GCS client version (#5047)
enisoc Aug 5, 2019
c488ece
test.go: Re-enable clean-up of docker test dirs.
enisoc Aug 5, 2019
8d60fb8
Fix Dockerfile.mariadb103 (#5050)
enisoc Aug 5, 2019
f914826
Fix ApplyRoutingRules -rules_file flag
dctrwatson Aug 5, 2019
d4d4c34
vtbackup: Only consider complete backups when looking for latest backup.
enisoc Aug 5, 2019
eb9f8a0
add a testcase to binlog_event_json_test
Aug 6, 2019
5195bd6
cleanup: correct logging message
Aug 5, 2019
b5a6419
Merge pull request #5055 from HubSpot/binlog-event-json-testcase
sougou Aug 6, 2019
a283855
Merge pull request #5053 from planetscale/jw-fix-ApplyRoutingRules-fi…
sougou Aug 6, 2019
4f58828
Merge pull request #5051 from planetscale/docker-test-cleanup
sougou Aug 6, 2019
7664d27
Merge pull request #5049 from ethan-daocloud/patch-3
sougou Aug 6, 2019
4c288f4
fix duplicate key error during copy phase caused by incorrectly inser…
deepthi Aug 5, 2019
0307a2e
- Completed Addition function in arithmetic.go to match behavior simi…
Aug 6, 2019
9b2edf5
docker: Add XtraBackup to vitess/lite.
enisoc Aug 7, 2019
aa33b3a
Add ability to process vschema migrations during vttestserver startup
kalfonso Aug 1, 2019
0fedf79
Fix Tests
saifalharthi Aug 7, 2019
3dc1bf5
Merge remote-tracking branch 'origin/master' into tiglabs-prepare
saifalharthi Aug 7, 2019
3f67a4a
Fix mount path
saifalharthi Aug 7, 2019
8dcbbb9
Merge pull request #5052 from planetscale/vtbackup-skip
deepthi Aug 7, 2019
5dfbae8
Merge pull request #5059 from planetscale/docker-xtrabackup
deepthi Aug 7, 2019
00dfc65
Add initial support for capabilities (#4987)
morgo Aug 8, 2019
23c5ac3
Merge pull request #5048 from planetscale/ss-vrepl-clean-copy-state
sougou Aug 8, 2019
a78412a
migrater: resharding_journal: participants change
sougou Jul 9, 2019
89c4752
don't take the action lock while running xtrabackup because that prev…
deepthi Aug 9, 2019
e663c31
address review comments
deepthi Aug 9, 2019
b56856b
xtrabackup: Stream stderr to logs.
enisoc Aug 8, 2019
d7fb060
Merge remote-tracking branch 'origin/master' into tiglabs-prepare
saifalharthi Aug 9, 2019
58a810f
Fixed tests and bug in ComPrepare
saifalharthi Aug 9, 2019
d90e723
Address comments
saifalharthi Aug 9, 2019
edc2a24
docker: vitess/k8s: Include all my.cnf template files. (#5068)
enisoc Aug 9, 2019
112187e
Added end to end test fail ComPrepare and make sure other queries do …
saifalharthi Aug 9, 2019
aa9808a
- Completed Addition expression and added appropriate tests
Aug 9, 2019
95f1642
Merge pull request #5018 from planetscale/tiglabs-prepare
sougou Aug 9, 2019
36fef02
Scan lines to send to logger instead of direct write.
enisoc Aug 9, 2019
4cb274d
xtrabackup: Add verbose flag to tar.
enisoc Aug 9, 2019
93074c5
Use move-back instead of copy-back.
enisoc Aug 9, 2019
f0b6b96
implement boolean state for xtrabackup, and stats variable for whethe…
deepthi Aug 10, 2019
9a2571b
check whether backup is already running
deepthi Aug 10, 2019
fdce969
Clean up Close() error handling.
enisoc Aug 10, 2019
b18aadf
package/worker: misspelled word in html template correction
Aug 10, 2019
8068703
cleanup: word correction in tx_serializer.go
Aug 10, 2019
af13447
Add verbose flag to xbstream extraction command.
enisoc Aug 10, 2019
b185573
Add data striping for xtrabackup.
enisoc Aug 10, 2019
870a07f
Add unit test for data striping.
enisoc Aug 10, 2019
11391f1
Test data striping in integration test.
enisoc Aug 10, 2019
7e99841
Merge pull request #5065 from planetscale/xtrabackup-stream-logs
deepthi Aug 11, 2019
999613d
Merge branch 'master' into ds-xb-5062
deepthi Aug 11, 2019
b9d707f
Merge pull request #5054 from kalfonso/kalfonso.190801-vttestserver-a…
tirsen Aug 12, 2019
270484d
fix wrong spells in acl.go
Aug 12, 2019
1ecdd8a
vtbackup: Don't enforce timeouts. (#5071)
enisoc Aug 12, 2019
389cb88
Merge pull request #5079 from AllenZMC/patch-1
deepthi Aug 12, 2019
b5eb51a
Merge pull request #5074 from ethan-daocloud/patch-4
deepthi Aug 12, 2019
132fd5d
Gate Python dependencies
morgo Aug 12, 2019
acd91e8
Add BUILD_JAVA flag too
morgo Aug 12, 2019
46a9f33
Merge pull request #5081 from planetscale/morgo-bootrap-pythonless
sougou Aug 13, 2019
29f02a5
Merge pull request #5073 from ethan-daocloud/dev-wgm-190810
sougou Aug 13, 2019
1b8dc21
Merge pull request #5064 from planetscale/ss-vrepl-participants
sougou Aug 13, 2019
5a2a09a
Merge pull request #5057 from planetscale/ds-lastpk-fix
sougou Aug 13, 2019
c66d22d
#5048 changed how we delete from copy_state table, the testcase needs…
deepthi Aug 13, 2019
361fec0
Merge pull request #5087 from planetscale/ds-fix-ci-after-5057
sougou Aug 13, 2019
ed078eb
Update tablet.go
Aug 13, 2019
4602af6
Fix UpdateCellsAlias. (#5090)
enisoc Aug 13, 2019
5b76ff2
Move git hooks to start of bootstrap.
morgo Aug 13, 2019
1a3c80f
fix filename in message!
morgo Aug 13, 2019
313a830
- Fixed code based off comments from Github
Aug 13, 2019
f526d47
- Deleted functions that are not related to addition expression
Aug 13, 2019
ac0cdc6
- Changed NullsafeAdd() in ordered_aggregate.go to return only a valu…
Aug 13, 2019
77089db
Allow adding sequence table to the vschema via ALTER VSCHEMA ADD SEQU…
kalfonso Aug 10, 2019
43bb0cf
add doc for new stats var
deepthi Aug 14, 2019
30f95c9
Merge pull request #5091 from planetscale/morgo-move-githooks
sougou Aug 14, 2019
7149b40
Merge pull request #5089 from AllenZMC/patch-1
sougou Aug 14, 2019
08d588e
Merge pull request #5080 from kalfonso/kalfonso.190810-alter-vschema-…
sougou Aug 14, 2019
9bfe009
vreplication: fix character set issue
sougou Aug 4, 2019
e370f9a
keyspace.go: cleanup typo in error message
Aug 13, 2019
c031bd6
Allow adding autoincrement column via "ALTER VSCHEMA..." statement
kalfonso Aug 14, 2019
d66ffcd
fix wrong spells in opentsdb.go
Aug 14, 2019
a809693
Update testify dependency
systay Aug 13, 2019
4dea5a5
Move one test file to testify
systay Aug 13, 2019
0420a59
Small test that exposes problem
systay Aug 14, 2019
53310a3
Address staticcheck warnings in prepared statement
saifalharthi Aug 14, 2019
01a30bb
Make sure to handle COUNT and SUM with DISTINCT columns
systay Aug 14, 2019
995ebf6
fix spelling in opentsdb.go (#5095)
dweitzman Aug 14, 2019
bfa8482
Quick fix
saifalharthi Aug 14, 2019
c51e07f
export stats for both online and offline backups, use mutex correctly…
deepthi Aug 14, 2019
5533c22
Address comment
saifalharthi Aug 14, 2019
1acc4aa
Merge pull request #5096 from planetscale/sa-fix-static-check
deepthi Aug 14, 2019
9830594
Merge pull request #5066 from planetscale/ds-xb-5062
deepthi Aug 15, 2019
25c2f15
Auto-detect engine when restoring backups (#5092)
enisoc Aug 15, 2019
476cf9e
fix wrong spells in slave_connection.go
Aug 15, 2019
2113547
Merge pull request #5093 from planetscale/ss-vrepl-charset
sougou Aug 15, 2019
d2e0312
Cleanup from capabilities PR
morgo Aug 16, 2019
8a4bb11
Merge pull request #5100 from AllenZMC/patch-2
sougou Aug 16, 2019
42dc5d8
Merge pull request #5094 from kalfonso/kalfonso.190814-alter-vschema-…
sougou Aug 16, 2019
cd68658
Merge pull request #5086 from ethan-daocloud/patch-5
sougou Aug 16, 2019
6041652
Merge remote-tracking branch 'upstream/master' into morgo-followup-ca…
morgo Aug 16, 2019
7097c09
Add bootstrap
morgo Aug 16, 2019
a7983a3
Merge pull request #5097 from systay/aggregation-distinct-with-empty-…
sougou Aug 17, 2019
56e5b17
endtoend: factor out waitForMessage
derekperkins Jul 20, 2019
181aaf3
schema: add getString from comments
derekperkins Jul 26, 2019
0bf3545
messages: add topic abstraction like Google PubSub
derekperkins Jul 26, 2019
f6a162a
messages: resolve topic suggestions
derekperkins Jul 28, 2019
c84cab2
messages: rebuild topics on every table Reload
derekperkins Aug 1, 2019
24d3d1b
schema: delay broadcast until end of Reload
derekperkins Aug 15, 2019
3b77080
Remove compatibility line, no longer required
morgo Aug 17, 2019
35e8803
fix wrong spells in vtprocess.go
Aug 17, 2019
175cf95
cleanup: fix typos in mysql/client.go
Aug 17, 2019
e34746c
Merge pull request #5011 from nozzle/message-topics-pseudo-table
sougou Aug 17, 2019
b359c10
Merge pull request #5107 from ethan-daocloud/patch-6
sougou Aug 17, 2019
e1f9544
Merge pull request #5106 from AllenZMC/patch-1
sougou Aug 17, 2019
8d852ef
Merge pull request #5105 from planetscale/morgo-followup-capabilities
sougou Aug 17, 2019
b78c2a7
fix mis-spelling in txlogz.go
Aug 18, 2019
ad33953
fix race condition
Aug 19, 2019
30d6e0d
routing rules: handle corner case in delete
sougou Aug 4, 2019
6ed476e
cleanup: engine/insert.go comment fix typo
Aug 19, 2019
243beda
Merge pull request #5112 from ethan-daocloud/patch-7
sougou Aug 19, 2019
6684246
Merge pull request #5110 from AllenZMC/patch-2
sougou Aug 19, 2019
613b4ce
vreplication: bug: make row streaming more robust
sougou Aug 19, 2019
ecc2e8b
helm: delete mysql.sock.lock in init container
derekperkins Aug 20, 2019
4441b0a
Merge pull request #5115 from nozzle/delete-sock-lock
derekperkins Aug 20, 2019
2217172
fix typos in vtbackup.go
Aug 20, 2019
63456f6
Updating to golang 1.12
mpawliszyn Jul 24, 2019
cbf78ca
Merge pull request #5017 from mpawliszyn/mikepaw.update-golang
sougou Aug 20, 2019
08650b5
Merge pull request #4936 from planetscale/tj-vtclient
sougou Aug 20, 2019
cf5f4b9
- Pushing current changes to ordered_aggregate_test.go and arithmetic.go
Aug 20, 2019
a3b5da7
Merge pull request #5114 from planetscale/ss-vrepl-fix-copy
sougou Aug 21, 2019
81cd378
Fix Merge conflicts
saifalharthi Aug 21, 2019
b5207f0
Merge pull request #5124 from planetscale/tinyspeck-remove-non-standa…
sougou Aug 21, 2019
1b5e37d
- Included fixes for code by Sugu and Morgan
Aug 22, 2019
b9c1a15
- Fixed TestToFloat64() and TestNewNumeric() in arithmetic_test.go to…
Aug 22, 2019
5dbc316
Merge remote-tracking branch 'origin/master' into rk-add-expression
Aug 22, 2019
c23f0d3
- Imported "reflect" in ordered_aggregate_test.go
Aug 22, 2019
98a735d
Merge pull request #5111 from planetscale/ss-vrepl-work
deepthi Aug 22, 2019
972d897
Cleanup: fix some typos in code comment
hwdef Aug 23, 2019
51ba11f
fix spelling mistake
hwdef Aug 23, 2019
e94f297
Empty results should return a count of 0 but a sum of null.
mpawliszyn Aug 21, 2019
8a009d5
- Fixed code from comments given by systay in arithmetic.go
Aug 23, 2019
d221b9c
healthcheck after backup should be run only for offline backups
deepthi Aug 23, 2019
8cbed09
Merge pull request #5127 from hwdef/fix-typo
sougou Aug 23, 2019
253e3d0
Merge pull request #5126 from hwdef/fix-typo-go/vt/workflow
sougou Aug 23, 2019
e9ce175
Merge pull request #5121 from mpawliszyn/mikepaw.fix-sum-count
sougou Aug 23, 2019
d14bade
Merge pull request #5117 from AllenZMC/patch-1
sougou Aug 23, 2019
0c48dee
check that actionMutex is locked before running healthcheck
deepthi Aug 23, 2019
25ed943
- Changed default return value in newNumeric() from Float64 to Int64
Aug 23, 2019
d030531
- Fixed error in TestAdd()
Aug 23, 2019
6467c98
Merge pull request #4996 from planetscale/ss-multi-lookup
sougou Aug 24, 2019
c697d32
- Added fixes from github to ensure code coverage
Aug 26, 2019
3355459
Merge pull request #5072 from planetscale/rk-add-expression
sougou Aug 26, 2019
91ad492
Merge pull request #5129 from planetscale/ds-bkup-hchk
sougou Aug 26, 2019
9bb5735
Merge branch 'master' of github.com:tinyspeck/vitess into tinyspeck-m…
Aug 26, 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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:

language: go
go:
- 1.11.x
- 1.12.x
go_import_path: vitess.io/vitess
env:
global:
Expand Down
109 changes: 30 additions & 79 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,15 @@
# 0. Initialization and helper methods.
# 1. Installation of dependencies.
# 2. Installation of Go tools and vendored Go dependencies.
# 3. Detection of installed MySQL and setting MYSQL_FLAVOR.
# 4. Installation of development related steps e.g. creating Git hooks.

BUILD_TESTS=${BUILD_TESTS:-1}
BUILD_PYTHON=${BUILD_PYTHON:-1}
BUILD_JAVA=${BUILD_JAVA:-1}

#
# 0. Initialization and helper methods.
#

# Run parallel make, based on number of cores available.
case $(uname) in
Linux) NB_CORES=$(grep -c '^processor' /proc/cpuinfo);;
Darwin) NB_CORES=$(sysctl hw.ncpu | awk '{ print $2 }');;
esac
if [ -n "$NB_CORES" ]; then
export MAKEFLAGS="-j$((NB_CORES+1)) -l${NB_CORES}"
fi

function fail() {
echo "ERROR: $1"
exit 1
Expand All @@ -48,19 +39,27 @@ function fail() {
go version &>/dev/null || fail "Go is not installed or is not on \$PATH"
[[ "$(go version 2>&1)" =~ go1\.[1-9][1-9] ]] || fail "Go is not version 1.11+"

# Create main directories.
mkdir -p "$VTROOT/dist"
mkdir -p "$VTROOT/bin"
mkdir -p "$VTROOT/lib"
mkdir -p "$VTROOT/vthook"

# Install git hooks.
echo "creating git hooks"
mkdir -p "$VTTOP/.git/hooks"
ln -sf "$VTTOP/misc/git/pre-commit" "$VTTOP/.git/hooks/pre-commit"
ln -sf "$VTTOP/misc/git/commit-msg" "$VTTOP/.git/hooks/commit-msg"
(cd "$VTTOP" && git config core.hooksPath "$VTTOP/.git/hooks")


# Set up the proper GOPATH for go get below.
if [ "$BUILD_TESTS" == 1 ] ; then
source ./dev.env
else
source ./build.env
fi

# Create main directories.
mkdir -p "$VTROOT/dist"
mkdir -p "$VTROOT/bin"
mkdir -p "$VTROOT/lib"
mkdir -p "$VTROOT/vthook"

if [ "$BUILD_TESTS" == 1 ] ; then
# Set up required soft links.
# TODO(mberlin): Which of these can be deleted?
Expand Down Expand Up @@ -144,12 +143,13 @@ function install_grpc() {
PIP=$grpc_virtualenv/bin/pip
$PIP install --upgrade pip
$PIP install --upgrade --ignore-installed virtualenv
$PIP install mysql-connector-python

grpcio_ver=$version
$PIP install --upgrade grpcio=="$grpcio_ver" grpcio-tools=="$grpcio_ver"
}

if [ "$BUILD_TESTS" == 1 ] ; then
if [ "$BUILD_PYTHON" == 1 ] ; then
install_dep "gRPC" "1.16.0" "$VTROOT/dist/grpc" install_grpc
fi

Expand Down Expand Up @@ -186,9 +186,11 @@ function install_zookeeper() {
zip -d "lib/$zk-fatjar.jar" 'META-INF/*.SF' 'META-INF/*.RSA' 'META-INF/*SF' || true # needed for >=3.4.10 <3.5
rm -rf "$zk" "$zk.tar.gz"
}
zk_ver=${ZK_VERSION:-3.4.14}
install_dep "Zookeeper" "$zk_ver" "$VTROOT/dist/vt-zookeeper-$zk_ver" install_zookeeper

zk_ver=${ZK_VERSION:-3.4.14}
if [ "$BUILD_JAVA" == 1 ] ; then
install_dep "Zookeeper" "$zk_ver" "$VTROOT/dist/vt-zookeeper-$zk_ver" install_zookeeper
fi

# Download and install etcd, link etcd binary into our root.
function install_etcd() {
Expand Down Expand Up @@ -252,7 +254,7 @@ function install_pymock() {
popd >/dev/null
}
pymock_version=1.0.1
if [ "$BUILD_TESTS" == 1 ] ; then
if [ "$BUILD_PYTHON" == 1 ] ; then
install_dep "py-mock" "$pymock_version" "$VTROOT/dist/py-mock-$pymock_version" install_pymock
fi

Expand All @@ -267,7 +269,7 @@ function install_selenium() {
# instead of go/dist/selenium/lib/python3.5/site-packages and then can't find module 'pip._vendor.requests'
PYTHONPATH='' $PIP install selenium
}
if [ "$BUILD_TESTS" == 1 ] ; then
if [ "$BUILD_PYTHON" == 1 ] ; then
install_dep "Selenium" "latest" "$VTROOT/dist/selenium" install_selenium
fi

Expand All @@ -281,10 +283,13 @@ function install_chromedriver() {
unzip -o -q chromedriver_linux64.zip -d "$dist"
rm chromedriver_linux64.zip
}
if [ "$BUILD_TESTS" == 1 ] ; then
if [ "$BUILD_PYTHON" == 1 ] ; then
install_dep "chromedriver" "73.0.3683.20" "$VTROOT/dist/chromedriver" install_chromedriver
fi

if [ "$BUILD_PYTHON" == 1 ] ; then
PYTHONPATH='' $PIP install mysql-connector-python
fi

#
# 2. Installation of Go tools and vendored Go dependencies.
Expand Down Expand Up @@ -324,59 +329,5 @@ go get -u $gotools || fail "Failed to download some Go tools with 'go get'. Plea
echo "Updating govendor dependencies..."
govendor sync || fail "Failed to download/update dependencies with govendor. Please re-run bootstrap.sh in case of transient errors."


#
# 3. Detection of installed MySQL and setting MYSQL_FLAVOR.
#


# find mysql and prepare to use libmysqlclient

if [ "$BUILD_TESTS" == 1 ] ; then
if [ -z "$MYSQL_FLAVOR" ]; then
export MYSQL_FLAVOR=MySQL56
echo "MYSQL_FLAVOR environment variable not set. Using default: $MYSQL_FLAVOR"
fi
case "$MYSQL_FLAVOR" in
"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")
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."
;;

*)
fail "Unsupported MYSQL_FLAVOR $MYSQL_FLAVOR"
;;

esac
# save the flavor that was used in bootstrap, so it can be restored
# every time dev.env is sourced.
echo "$MYSQL_FLAVOR" > "$VTROOT/dist/MYSQL_FLAVOR"
fi

#
# 4. Installation of development related steps e.g. creating Git hooks.
#

if [ "$BUILD_TESTS" == 1 ] ; then
# Create the Git hooks.
echo "creating git hooks"
mkdir -p "$VTTOP/.git/hooks"
ln -sf "$VTTOP/misc/git/pre-commit" "$VTTOP/.git/hooks/pre-commit"
ln -sf "$VTTOP/misc/git/prepare-commit-msg.bugnumber" "$VTTOP/.git/hooks/prepare-commit-msg"
ln -sf "$VTTOP/misc/git/commit-msg" "$VTTOP/.git/hooks/commit-msg"
(cd "$VTTOP" && git config core.hooksPath "$VTTOP/.git/hooks")
echo
echo "bootstrap finished - run 'source dev.env' in your shell before building."
else
echo
echo "bootstrap finished - run 'source build.env' in your shell before building."
fi


echo
echo "bootstrap finished - run 'source dev.env' or 'source build.env' in your shell before building."
1 change: 0 additions & 1 deletion build.env
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ export VTROOT
if [[ "$VTTOP" == "${VTTOP/\/src\/vitess.io\/vitess/}" ]]; then
echo "WARNING: VTTOP($VTTOP) does not contain src/vitess.io/vitess"
fi

12 changes: 2 additions & 10 deletions config/mycnf/master_mariadb.cnf
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
# This file is auto-included when MariaDB (any version) is detected.

# enable strict mode so it's safe to compare sequence numbers across different server IDs.
gtid_strict_mode = 1
innodb_stats_persistent = 0
innodb_support_xa = 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
Expand Down
12 changes: 12 additions & 0 deletions config/mycnf/master_mariadb100.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is auto-included when MariaDB 10.0 is detected.

innodb_support_xa = 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
12 changes: 12 additions & 0 deletions config/mycnf/master_mariadb101.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is auto-included when MariaDB 10.1 is detected.

innodb_support_xa = 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
12 changes: 12 additions & 0 deletions config/mycnf/master_mariadb102.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is auto-included when MariaDB 10.2 is detected.

innodb_support_xa = 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
2 changes: 2 additions & 0 deletions config/mycnf/master_mariadb103.cnf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-included when MariaDB 10.3 is detected.

# enable strict mode so it's safe to compare sequence numbers across different server IDs.
gtid_strict_mode = 1
innodb_stats_persistent = 0
Expand Down
2 changes: 2 additions & 0 deletions config/mycnf/master_mysql56.cnf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-included when MySQL 5.6 is detected.

# Options for enabling GTID
# https://dev.mysql.com/doc/refman/5.6/en/replication-gtids-howto.html
gtid_mode = ON
Expand Down
32 changes: 32 additions & 0 deletions config/mycnf/master_mysql57.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file is auto-included when MySQL 5.7 is detected.

# 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
innodb_use_native_aio = 0

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

# 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

2 changes: 2 additions & 0 deletions config/mycnf/master_mysql80.cnf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-included when MySQL 8.0 is detected.

# Options for enabling GTID
# https://dev.mysql.com/doc/refman/5.6/en/replication-gtids-howto.html
gtid_mode = ON
Expand Down
10 changes: 0 additions & 10 deletions dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,6 @@ if [[ "$VT_MYSQL_ROOT" == "" ]]; then
fi
fi

# restore MYSQL_FLAVOR, saved by bootstrap.sh
if [ -r "$VTROOT/dist/MYSQL_FLAVOR" ]; then
MYSQL_FLAVOR=$(cat "$VTROOT/dist/MYSQL_FLAVOR")
export MYSQL_FLAVOR
fi

# mysql cgo library config
if [ -z "$MYSQL_FLAVOR" ]; then
export MYSQL_FLAVOR=MariaDB
fi
PKG_CONFIG_PATH=$(prepend_path "$PKG_CONFIG_PATH" "$VTROOT/lib")
export PKG_CONFIG_PATH

Expand Down
12 changes: 0 additions & 12 deletions doc/AdvancedFeaturesIndex.md

This file was deleted.

Loading