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

Vitess v8.0 Release branch #194

Merged
merged 1,072 commits into from
Mar 16, 2021
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
1072 commits
Select commit Hold shift + click to select a range
8f52a15
7.0.2 Release Notes
askdba Sep 23, 2020
abeb250
Detect if MariaDB using query
rohit-nayak-ps Sep 23, 2020
c82815e
Merge pull request #6776 from planetscale/7_0_2_release_notes_01
harshit-gangal Sep 23, 2020
19d2889
Merge pull request #6774 from planetscale/ss-pt1-fix
deepthi Sep 23, 2020
99c1bd9
Only test SetStatement on limited flavors
rohit-nayak-ps Sep 23, 2020
4ad97c5
orc tests: make tests independent, remove CreateDB
deepthi Sep 23, 2020
7c532a5
Use require/assert in the rest of the tests
ajm188 Sep 23, 2020
75204d1
Do not error if tables that are not part of the stream go missing
rohit-nayak-ps Sep 23, 2020
27fd491
Merge pull request #6752 from tinyspeck/am_list_shard_ranges
deepthi Sep 23, 2020
1a0bc0d
add myself to CODEOWNERS
deepthi Sep 23, 2020
ef46380
Merge pull request #6778 from planetscale/rn-materialize-ignore-delet…
sougou Sep 23, 2020
aa60ed5
Merge pull request #6779 from planetscale/ds-codeowners
sougou Sep 23, 2020
ff51d90
Use `KeywordString`
ajm188 Sep 23, 2020
804d00c
Remove debug log lines, standardize actual log lines
ajm188 Sep 23, 2020
f2b437b
Update tests
ajm188 Sep 24, 2020
9219d12
Merge pull request #6749 from MordFustang21/zero_autoinc_mode
sougou Sep 24, 2020
c02b7d5
Merge pull request #6772 from planetscale/rn-vr-set-stmt
sougou Sep 24, 2020
fe5986f
Update the rest of TestExecutorShow to use require/assert
ajm188 Sep 24, 2020
107c000
addressed review comments
harshit-gangal Sep 24, 2020
2964d68
fixed orchestrator govet errors
shlomi-noach Sep 24, 2020
4c050ef
Merge remote-tracking branch 'upstream/master' into vttablet-throttle
shlomi-noach Sep 24, 2020
bd92ff5
Add flags to allow PITR binlog client TLS support
aquarapid Sep 23, 2020
db72799
Add test for passing binlog server password
aquarapid Sep 24, 2020
aa0d1fc
Merged master
GuptaManan100 Sep 24, 2020
fcc3f48
Merge remote-tracking branch 'upstream/master' into online-ddl
shlomi-noach Sep 24, 2020
f072bb5
Merge pull request #6781 from planetscale/fix-orchestrator-govet
harshit-gangal Sep 24, 2020
420d470
Changed Lock from string to sqlpParser.Lock
GuptaManan100 Sep 24, 2020
0d201be
Merge pull request #6765 from planetscale/out-of-order-tables
systay Sep 24, 2020
992c38f
HTTP 200 OK when no replicas exist
shlomi-noach Sep 24, 2020
a073340
Add myself(Rohit) to CODEOWNERS
rohit-nayak-ps Sep 24, 2020
d4bd3ba
Merge pull request #6737 from planetscale/upd-vindex
harshit-gangal Sep 24, 2020
0a4cf51
orc tests: verify replication after election, leave vttablet running …
deepthi Sep 24, 2020
0454821
orc tests: enable in CI
deepthi Sep 24, 2020
2bf4532
orc tests: change mysql test config for faster failure detection
deepthi Sep 24, 2020
ba0e410
Error metrics: initial ones for vstreamer
rohit-nayak-ps Sep 24, 2020
2584b2a
tm: change how SetReadOnly is called to avoid errors from externally …
deepthi Sep 24, 2020
85e1113
Merge pull request #6785 from planetscale/rn-codeowners
deepthi Sep 24, 2020
bc1ff89
Error metrics: initial ones for vreplication
rohit-nayak-ps Sep 24, 2020
fd0e865
orc tests: regen rice-box.go to get changes to cnf file
deepthi Sep 24, 2020
94dce74
Merge pull request #6786 from planetscale/ds-change-ttype
sougou Sep 25, 2020
c4f9fcc
Formatted files via gofmt
GuptaManan100 Sep 25, 2020
6f4b993
Changed Function names to ToString for uniformity
GuptaManan100 Sep 25, 2020
5ad645c
Error metrics: removed debug metrics
rohit-nayak-ps Sep 25, 2020
6e3454e
Merge pull request #6729 from GuptaManan100/stringsToEnum
systay Sep 25, 2020
d1c5b4c
Merge remote-tracking branch 'upstream/master' into am_show_filtered_…
systay Sep 25, 2020
ac7040a
Merge pull request #6770 from planetscale/ds-orc-tests
sougou Sep 25, 2020
8183eb0
orc: use contexts with timeout for remote operations
deepthi Sep 23, 2020
aed9966
orc: add context timeouts to config
deepthi Sep 25, 2020
10d11e6
Merge branch 'master' into jg_binlog_tls
aquarapid Sep 25, 2020
11e48b3
Merge pull request #6780 from planetscale/ds-orc-context
sougou Sep 25, 2020
8e6f282
Start watcher if tracker is on. More logs
rohit-nayak-ps Sep 26, 2020
f0c8097
Start watcher if tracker is on. More logs
rohit-nayak-ps Sep 26, 2020
6cbdffa
Test using a MySQL server password for ripple.
aquarapid Sep 28, 2020
ecb8eb1
Add TLS binlog test using mysqld as the binlog server.
aquarapid Sep 28, 2020
fb96841
8_0_0 Release Notes
askdba Sep 28, 2020
9004f97
Added argument to specify keyspace name
GuptaManan100 Sep 28, 2020
5a71ac0
Replaced database name in all fields to KeyspaceName in Execute metho…
GuptaManan100 Sep 28, 2020
007ad55
Added test for StreamExecute which is currently failing
GuptaManan100 Sep 28, 2020
2916ce7
StreamExecute now replaces databaseName with keyspaceName
GuptaManan100 Sep 28, 2020
cdd7063
Added Test for ExecuteBatch Method
GuptaManan100 Sep 28, 2020
9d08d8f
Added Test for BeginExecute Method
GuptaManan100 Sep 28, 2020
9c1c054
Added Test for BeginExecuteBatch Method
GuptaManan100 Sep 28, 2020
1017a96
Added Test for ReserveExecute Method
GuptaManan100 Sep 28, 2020
e47c5a5
Added Test for ReserveBeginExecute Method
GuptaManan100 Sep 28, 2020
ff06a02
Change database names only if they are not already stripped
GuptaManan100 Sep 28, 2020
6854987
Split the test into separate tests
GuptaManan100 Sep 28, 2020
e0e994d
Merge pull request #6750 from tinyspeck/am_show_filtered_tablets
systay Sep 28, 2020
fdaaf1e
Move TLS PiTR test to its own package
aquarapid Sep 28, 2020
220d164
Add validations for streams/journal entries leftover from previous/in…
rohit-nayak-ps Sep 28, 2020
caa7ffa
Fix dbname that needs escaping that we broke in fce4cfd894
aquarapid Sep 28, 2020
d71611b
Merge pull request #6794 from planetscale/jg_fixdbname
deepthi Sep 28, 2020
ac3a3d6
Merge pull request #6775 from planetscale/jg_binlog_tls
deepthi Sep 28, 2020
b01ea6e
Removed redundant checks
GuptaManan100 Sep 29, 2020
3669283
-throttle_tablet_types command line flag
shlomi-noach Sep 29, 2020
4b0a5a3
throttle according to throttle_tablet_types
shlomi-noach Sep 29, 2020
48e62e3
fixes per review
shlomi-noach Sep 29, 2020
62d2d82
fixes per review
shlomi-noach Sep 29, 2020
a460755
Update build errors in ./go/vt/vtgate for go1.15
ajm188 Sep 29, 2020
ac92be2
Merge pull request #6800 from tinyspeck/am_update_tests_for_go115
deepthi Sep 30, 2020
3db4b59
orc tests: add more cases
deepthi Sep 30, 2020
3b36ccb
Add optional ignore to delete statement
saifalharthi Sep 30, 2020
7f1de38
reorder throttler.Close()
shlomi-noach Sep 30, 2020
567271b
adapt state_manager test
shlomi-noach Sep 30, 2020
0160cc9
Added a new struct for SHOW TABLE STATUS
GuptaManan100 Sep 30, 2020
8863e99
Added query builder function for ShowTableStatus but keyspaceName nee…
GuptaManan100 Sep 30, 2020
e88ad4b
Removed from ks name from the Format of ShowTableStatus
GuptaManan100 Sep 30, 2020
4f2b70e
fix per review
shlomi-noach Sep 30, 2020
693d9d2
use vterrors
shlomi-noach Sep 30, 2020
b147d29
undo vterrors
shlomi-noach Sep 30, 2020
7f22f51
Merge pull request #6802 from saifalharthi/sa-delete-ignore
systay Sep 30, 2020
a016bfe
Merge pull request #6801 from planetscale/ds-orc-test2
deepthi Sep 30, 2020
4d09259
throttler implicitly enables heartbeat
shlomi-noach Oct 1, 2020
047352a
removed DefaultMySQLPort
shlomi-noach Oct 1, 2020
60a4082
enable/disable heartbeat; fix tests
shlomi-noach Oct 1, 2020
e2d0e1a
Merge pull request #6668 from planetscale/vttablet-throttle
shlomi-noach Oct 1, 2020
3a840a8
WIP: table dropper (aka garbage collector)
shlomi-noach Sep 14, 2020
fcca82c
tablegc supportive functions
shlomi-noach Sep 15, 2020
2b34a8b
added Evac state, added tests, table name analysis
shlomi-noach Sep 15, 2020
e706362
rename hint->state. Parsing lifecycle comma delimites state string
shlomi-noach Sep 16, 2020
4ec225d
fix state_manager_test
shlomi-noach Sep 16, 2020
ac541ba
initial state machine implementation in TableGC (renamed from TableDr…
shlomi-noach Sep 16, 2020
3dd6aa5
added unit test
shlomi-noach Sep 16, 2020
5cbbb1e
refactor to better state machine logic, now tested
shlomi-noach Sep 16, 2020
0fdeda1
purge logic in place
shlomi-noach Sep 16, 2020
5756dfb
actual purge of data (still need to apply SQL_LOG_bin=0
shlomi-noach Sep 16, 2020
9173b00
clearing and setting SQL_LOG_BIN
shlomi-noach Sep 16, 2020
c56d91c
feature complete. SQL_LOG_BIN=0 when purging rows
shlomi-noach Sep 17, 2020
dae8c2e
more logging, DROP implicitly included in lifecycle
shlomi-noach Sep 21, 2020
c50b442
adding endtoend test file
shlomi-noach Sep 21, 2020
905f8cd
adding shard 27, running tablegc on shard 27
shlomi-noach Sep 21, 2020
ddb1783
debug message cleanup
shlomi-noach Sep 21, 2020
d103395
removed redundant Sleep
shlomi-noach Sep 22, 2020
c6e7ffc
moved suspendable_ticker around
shlomi-noach Oct 1, 2020
8ae0fb1
using refactored SuspendableTicker
shlomi-noach Oct 1, 2020
b75629b
fixed Open()/Close() behavior
shlomi-noach Oct 1, 2020
0ca8a48
Revert "Removed from ks name from the Format of ShowTableStatus"
GuptaManan100 Oct 1, 2020
a87c40d
Removed databasename before sending the query via Send and Added test…
GuptaManan100 Oct 1, 2020
c435dc2
Merged master
GuptaManan100 Oct 1, 2020
a8b772b
refactored RandomHash into new textutil package
shlomi-noach Oct 1, 2020
e1bac58
Resolved error in sql.go by creating again
GuptaManan100 Oct 1, 2020
4f0210a
Fix error around breaking of multistatements
systay Oct 1, 2020
149ea24
Resolved make parser check
GuptaManan100 Oct 1, 2020
a378d39
fix builds
shlomi-noach Oct 1, 2020
31872f5
merge master, resovle conflicts
shlomi-noach Oct 1, 2020
a994ca3
Open()/Close() logic
shlomi-noach Oct 1, 2020
f022181
debugging failing test
systay Oct 1, 2020
b680db7
gh-ost migrations use vttablet throttler
shlomi-noach Oct 1, 2020
6f6eb92
pt-osc migrations use vttablet throttler
shlomi-noach Oct 1, 2020
4579df5
Open() and Close() heartbeatWriter
shlomi-noach Oct 1, 2020
7a530bb
clean up tests to make them less fragile
systay Oct 2, 2020
47a93f0
Added Non restricted words support in column names and added tests fo…
GuptaManan100 Oct 2, 2020
9ef52bb
Added Parsing for Into outfile s3
GuptaManan100 Oct 2, 2020
5cb6e5f
Fewer situations where vtgate drops connections
systay Oct 2, 2020
11a574b
style nit
systay Oct 2, 2020
328aac9
orc tests: don't set DbName for tests that don't need it. disable TER…
deepthi Oct 2, 2020
48d6cf0
Merge pull request #6808 from planetscale/conn-error-handling
deepthi Oct 2, 2020
88671b0
Merge pull request #6812 from planetscale/ds-orc-flaky-tests
deepthi Oct 2, 2020
fab84a1
Update tests. Add tables to vschema for unsharded. More logs esp. for…
rohit-nayak-ps Oct 3, 2020
3a60563
Fix breaking resharder tests
rohit-nayak-ps Oct 3, 2020
c1d7a5a
Fix tests for existing journals
rohit-nayak-ps Oct 3, 2020
411809f
removed util.go
shlomi-noach Oct 4, 2020
1d61aaf
vttablet throttler feature flag: -enable-lag-throttler
shlomi-noach Oct 4, 2020
2deb3b6
check if ticks is nil
shlomi-noach Oct 4, 2020
f6f2e27
implicit OK check result when throttler is not enabled
shlomi-noach Oct 4, 2020
8505312
fix tests
shlomi-noach Oct 4, 2020
f66c6b1
obviously -enable-lag-throttler for throttler tests...
shlomi-noach Oct 4, 2020
cfe804c
Removed leftover debug lines
rohit-nayak-ps Oct 4, 2020
b60c2da
un do repltracker.go changes, because I'm going to merge vttablet-thr…
shlomi-noach Oct 4, 2020
289279b
Merge remote-tracking branch 'origin/vttablet-throttle-feature-flag' …
shlomi-noach Oct 4, 2020
a38856c
moved endtoend online-ddl test out of vtgate and into its own path
shlomi-noach Oct 4, 2020
fe9341e
creating MigrationRequestsPath once, so that ListDir doesn't show error
shlomi-noach Oct 4, 2020
c305450
do not report error if node exists
shlomi-noach Oct 4, 2020
df502e9
fixed missing schema qualifier in init query
shlomi-noach Oct 4, 2020
caa7dbc
Clarify some help options for gRPC TLS.
aquarapid Oct 4, 2020
9c177de
refactored list parsing function
shlomi-noach Oct 5, 2020
0064650
functionality from managed-drop-table
shlomi-noach Oct 5, 2020
fb3d39a
text functionality from managed-drop-table
shlomi-noach Oct 5, 2020
075f894
artifact cleanup: RENAME away tables for complete/failed migrations
shlomi-noach Oct 5, 2020
3ad851f
invoking artifact GC at end of migration
shlomi-noach Oct 5, 2020
295b1a8
migration_check_interval now configurable, in particular in favor of …
shlomi-noach Oct 5, 2020
85ef131
refactored handleNextCommand to make it easier to read
systay Oct 5, 2020
646ff9d
DRYed error packet writing
systay Oct 5, 2020
81efd8d
Merge pull request #6791 from GuptaManan100/maskDatabaseName
systay Oct 5, 2020
4c50ded
Support for bypass queries for INTO OUTFILE S3 along with tests
GuptaManan100 Oct 5, 2020
f40b40b
Add Alkin to maintainers
deepthi Oct 5, 2020
408f7d1
Merge pull request #6820 from planetscale/ds-add-alkin
deepthi Oct 5, 2020
1b2dc0f
Add clusters_to_watch flag to orchestrator. Defaults to all clusters
deepthi Oct 5, 2020
bbd31e2
Merge pull request #6815 from planetscale/vttablet-throttle-feature-flag
deepthi Oct 5, 2020
dd6ecae
Merge pull request #6547 from planetscale/online-ddl
deepthi Oct 5, 2020
e20dead
Merge pull request #6817 from planetscale/jg_fix_help
deepthi Oct 5, 2020
326bf2d
column order in vitess_tablet should be keyspace,shard,cell
deepthi Oct 5, 2020
0189d41
Merge pull request #6821 from planetscale/ds-orc2
deepthi Oct 5, 2020
07443aa
merged master, resolved conflicts
shlomi-noach Oct 6, 2020
d41a656
resolved error, state manager tests
shlomi-noach Oct 6, 2020
7ad166f
Merge pull request #6719 from planetscale/managed-drop-table
shlomi-noach Oct 6, 2020
fdf2462
Merged Master
GuptaManan100 Oct 6, 2020
12bd1f5
Merged Master
GuptaManan100 Oct 6, 2020
3c4202f
Merge pull request #6811 from GuptaManan100/select-into
systay Oct 6, 2020
7447de4
Merge pull request #6818 from planetscale/conn-refactor
systay Oct 6, 2020
7de8c87
Address review comments
rohit-nayak-ps Oct 6, 2020
a0a72cb
Merge pull request #6814 from planetscale/rn-workflow-validations
deepthi Oct 6, 2020
7c0cf0f
Merge pull request #6787 from planetscale/rn-vr-metrics
deepthi Oct 6, 2020
71c4176
Merge pull request #6773 from derekperkins/helm-docker-update
deepthi Oct 6, 2020
07e23c0
Rename Vitess fork of orchestrator to vtorc.
enisoc Oct 6, 2020
46dadda
Merge pull request #6828 from planetscale/vtorc-rename
sougou Oct 6, 2020
58f8fbb
Merge pull request #6731 from dweitzman/fix_tx_limiter
systay Oct 7, 2020
d63cd7d
Added planning support for Show table status on vttablet
GuptaManan100 Oct 7, 2020
da1174b
Merged master
GuptaManan100 Oct 7, 2020
0988455
Merge pull request #6807 from GuptaManan100/mysql-show
harshit-gangal Oct 7, 2020
dcc6375
online-DDL: migration uses low priority throttling
shlomi-noach Oct 8, 2020
6ce05ac
Merge pull request #6837 from planetscale/8.0-online-ddl-throttle-low…
deepthi Oct 8, 2020
c6a7b27
download zookeeper 3.4.14 from archive site
deepthi Oct 12, 2020
b4ddbe0
Merge pull request #6867 from planetscale/ds-zk-archive-80
deepthi Oct 13, 2020
7aa7c4b
healthcheck: should receive healthcheck updates from all tablets in c…
deepthi Oct 10, 2020
d8a64d9
No need to fail the whole query here
systay Oct 14, 2020
916754e
disable reserved connections by default
systay Oct 12, 2020
6a2d678
Merge pull request #6859 from planetscale/disable-reserved-connections
harshit-gangal Oct 14, 2020
b24e583
Merge pull request #6881 from planetscale/fixes-6827
harshit-gangal Oct 15, 2020
4a939c5
Docker - upgrade to Debian Buster
Oct 15, 2020
61c5242
Stabilize test
systay Oct 14, 2020
dbd7ab6
Fixing flaky tests
shlomi-noach Oct 14, 2020
e98892b
Attempt to fix flaky TestConnection
rohit-nayak-ps Oct 14, 2020
3558e86
Merge pull request #6888 from guidoiaquinti/release-8.0
deepthi Oct 15, 2020
a1c7d5c
Merge pull request #6858 from planetscale/ds-hc-crosscell-80
deepthi Oct 16, 2020
df1609d
Merge pull request #6889 from planetscale/ds-flaky-tests-80
deepthi Oct 16, 2020
6e2bd84
Fix parsing of online-ddl command line options
shlomi-noach Oct 19, 2020
58a8801
Merge pull request #6899 from planetscale/parse-online-ddl-options-re…
deepthi Oct 19, 2020
71f4cfb
java: Update version to 8.0.0 for release
harshit-gangal Oct 20, 2020
e5d1fc9
OnlineDDL bugfix: make sure schema is applied on tablet
shlomi-noach Oct 20, 2020
5eaa7d4
healthcheck: use isIncluded correctly to fix replica/rdonly routing bug
deepthi Oct 20, 2020
6bf72ed
Merge pull request #6849 from tinyspeck/am_mysqld_shutdown_timeout
deepthi Oct 22, 2020
d74753b
Merge pull request #6921 from tinyspeck/am_backport_6849
deepthi Oct 22, 2020
138b417
Merge pull request #6906 from planetscale/vitess-java-rel-8.0
deepthi Oct 22, 2020
128718a
Merge pull request #6909 from planetscale/online-ddl-schema-apply-rel…
sougou Oct 22, 2020
52f4f05
VDiff Enum: make enum compareable
rohit-nayak-ps Oct 13, 2020
5c7e590
VDiff Enum: add enum column to vrep e2e test. remove enum from uncomp…
rohit-nayak-ps Oct 14, 2020
0925546
Merge pull request #6922 from planetscale/ds-multicell-hc-80
askdba Oct 22, 2020
e4d81c4
Revert "Docker - upgrade to Debian Buster (release-8.0)"
deepthi Oct 22, 2020
184e612
Merge pull request #6925 from planetscale/backport_6880
deepthi Oct 22, 2020
3b4ca41
Set time zone to UTC while streaming rows
rohit-nayak-ps Oct 9, 2020
5ba29f4
Add a timestamp column to vrepl e2e to test a complete workflow with …
rohit-nayak-ps Oct 14, 2020
5352996
Merge pull request #6929 from vitessio/revert-6888-release-8.0
deepthi Oct 22, 2020
198f513
Merge pull request #6927 from planetscale/backport_6845
deepthi Oct 22, 2020
5e67474
added e2e test for insert statement in olap mode
harshit-gangal Oct 24, 2020
a284ae0
check error before calling callback
harshit-gangal Oct 24, 2020
cc8c593
fix test to delete row afterwards
harshit-gangal Oct 24, 2020
16c6c20
docker: pin mysql 5.7 and 8.0 versions for xtrabackup compatibility
deepthi Oct 25, 2020
811d288
addressed review comment
harshit-gangal Oct 26, 2020
f51bd7b
Merge pull request #6940 from planetscale/fix-errhandling-olap
harshit-gangal Oct 26, 2020
a110c39
v8.0 Release Notes -final draft-
askdba Oct 26, 2020
c0091be
Added [8.0] Fix error handling in olap mode #6940
askdba Oct 26, 2020
6ad72d1
Merge pull request #6943 from planetscale/ds-pin-mysql-docker-lite
deepthi Oct 26, 2020
e02d668
VDiff/Tablet Picker: fix picker retry logic to handle canceled context
rohit-nayak-ps Oct 25, 2020
060b3a4
Merge pull request #6954 from planetscale/backport_6944
rohit-nayak-ps Oct 27, 2020
b434dde
Minor updates in this branch
askdba Oct 27, 2020
234a25c
Vtorc comment by Sugu
askdba Oct 27, 2020
72d9302
Updated set commentary by systay
askdba Oct 27, 2020
7e09d0c
Merge pull request #6790 from planetscale/8_0_0_release_notes
askdba Oct 27, 2020
7a36e86
Fixed a bug which caused the connection to not close in case of error…
GuptaManan100 Oct 30, 2020
af86e80
Merge pull request #6976 from GuptaManan100/error-in-write-packet
systay Oct 30, 2020
53d6e38
don't try to compare varchars in vtgate
systay Jan 8, 2021
a90d749
Merge pull request #7270 from planetscale/fix-7254-in-8.0
systay Jan 8, 2021
0533e30
Correctly initialize the TabletType stats
dweitzman Nov 3, 2020
4150d5e
Merge pull request #7391 from planetscale/ds-80-backport-6989
deepthi Jan 27, 2021
7a8d85f
Patch sqltypes.MakeRowTrusted to lean on field count (#126)
setassociative Feb 25, 2019
f8a19a5
add a hack to enable routing to RDONLY tablets for REPLICA queries
demmer Mar 5, 2020
220e4db
Backport some panic protection during ERS (#196)
setassociative Mar 9, 2021
928f2d6
Backport vitessio#7523 into 8.0 (#198)
setassociative Mar 9, 2021
5b2ea67
Merge pull request #7002 from tinyspeck/better-error-timeout
sougou Nov 7, 2020
845715b
Fix bug in vtgate when running with keyspace filtering (#199)
setassociative Mar 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,17 @@
/helm/ @derekperkins @dkhenry
/config/mycnf/ @morgo
/go/vt/mysqlctl/mysqld.go @morgo
/go/test/endtoend/vtgate @harshit-gangal @systay
/go/vt/vtgate @harshit-gangal @systay
/go/vt/vttablet/tabletserver @harshit-gangal @systay
/go/vt/vttablet/tabletmanager/vstreamer @rohit-nayak-ps
/go/vt/sqlparser @harshit-gangal @systay
/go/vt/discovery @deepthi
/go/vt/vttablet/tabletmanager @deepthi
/go/vt/vttablet/tabletmanager/vreplication @rohit-nayak-ps
/go/vt/orchestrator @deepthi
/go/vt/vtctl @deepthi
/go/vt/wrangler @deepthi @rohit-nayak-ps
/go/vt/mysqlctl @deepthi
/web/vtctld2 @rohit-nayak-ps
/examples/local @rohit-nayak-ps
2 changes: 1 addition & 1 deletion .github/workflows/cluster_endtoend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
name: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
name: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27]

steps:
- name: Set up Go
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_test_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
- name: Check out code
uses: actions/checkout@v2

- name: Run tests which requires docker 1
- name: Run tests which require docker - 1
run: |
go run test.go -docker=true --follow -shard 10
4 changes: 2 additions & 2 deletions .github/workflows/docker_test_2.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: docker test 2
name: docker_test_2
on: [push, pull_request]
jobs:

Expand All @@ -16,6 +16,6 @@ jobs:
- name: Check out code
uses: actions/checkout@v2

- name: Run tests which requires docker - 2
- name: Run tests which require docker - 2
run: |
go run test.go -docker=true --follow -shard 25
21 changes: 21 additions & 0 deletions .github/workflows/docker_test_3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: docker_test_3
on: [push, pull_request]
jobs:

build:
name: Docker Test 3
runs-on: ubuntu-latest

steps:

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13

- name: Check out code
uses: actions/checkout@v2

- name: Run tests which require docker - 3
run: |
go run test.go -docker=true --follow -shard 26
2 changes: 1 addition & 1 deletion .github/workflows/region_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ jobs:
fi
# Make sure that testing is entirely non-reliant on config
mv config config-moved
sed -i 's/user\/my-vitess/runner\/work\/vitess\/vitess/g' examples/region_sharding/main_vschema.json #set correct path to countries.json
sed -i 's/user\/my-vitess/runner\/work\/vitess\/vitess/g' examples/region_sharding/main_vschema_sharded.json #set correct path to countries.json
eatmydata -- test/region_example.sh
6 changes: 4 additions & 2 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ This page lists all active maintainers and their areas of expertise. This can be

The following is the full list, alphabetically ordered.

* Alkin Tezuysal ([askdba](https://github.com/askdba)) alkin@planetscale.com
* Andres Taylor ([systay](https://github.com/systay)) andres@planetscale.com
* Anthony Yeh ([enisoc](https://github.com/enisoc)) enisoc@planetscale.com
* Dan Kozlowski ([dkhenry](https://github.com/dkhenry)) koz@planetscale.com
Expand All @@ -15,6 +16,7 @@ The following is the full list, alphabetically ordered.
* Morgan Tocker ([morgo](https://github.com/morgo)) morgan@planetscale.com
* Paul Hemberger ([pH14](https://github.com/pH14)) phemberger@hubspot.com
* Rafael Chacon ([rafael](https://github.com/rafael)) rchacon@slack-corp.com
* Shlomi Noach ([shlomi-noach](https://github.com/shlomi-noach)) shlomi@planetscale.com
* Sugu Sougoumarane ([sougou](https://github.com/sougou)) sougou@planetscale.com

## Areas of expertise
Expand All @@ -29,10 +31,10 @@ dkhenry, morgo
sougou, rafael, tirsen, dweitzman, systay

### Parser
sougou, dweitzman, deepthi, systay
sougou, dweitzman, deepthi, systay, harshit-gangal

### Cluster Management
deepthi, rafael, enisoc
deepthi, rafael, enisoc, shlomi-noach

### Java
mpawliszyn, pH14, harshit-gangal
Expand Down
21 changes: 14 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ ifdef VT_EXTRA_BUILD_FLAGS
export EXTRA_BUILD_FLAGS := $(VT_EXTRA_BUILD_FLAGS)
endif

# We now have CGO code in the build which throws warnings with newer gcc builds.
# See: https://github.com/mattn/go-sqlite3/issues/803
# Work around by dropping optimization level from default -O2.
# Safe, since this code isn't performance critical.
export CGO_CFLAGS := -O1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is potentially interesting?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, i don't actually know off hand where the CGO is utilized; possibly @rafael has thoughts? OP PR is not super informative vitessio#6632


# regenerate rice-box.go when any of the .cnf files change
embed_config:
cd go/vt/mysqlctl
go run github.com/GeertJohan/go.rice/rice embed-go
Expand All @@ -47,7 +54,8 @@ ifndef NOBANNER
echo $$(date): Building source tree
endif
bash ./build.env
go install $(EXTRA_BUILD_FLAGS) $(VT_GO_PARALLEL) -ldflags "$(shell tools/build_version_flags.sh)" ./go/...
go install $(EXTRA_BUILD_FLAGS) $(VT_GO_PARALLEL) -ldflags "$(shell tools/build_version_flags.sh)" ./go/... && \
(cd go/cmd/vttablet && go run github.com/GeertJohan/go.rice/rice append --exec=../../../bin/vttablet)

debug:
ifndef NOBANNER
Expand All @@ -61,7 +69,7 @@ endif
install: build
# binaries
mkdir -p "$${PREFIX}/bin"
cp "$${VTROOT}/bin/"{mysqlctld,vtctld,vtctlclient,vtgate,vttablet,vtworker,vtbackup} "$${PREFIX}/bin/"
cp "$${VTROOT}/bin/"{mysqlctld,vtorc,vtctld,vtctlclient,vtgate,vttablet,vtworker,vtbackup} "$${PREFIX}/bin/"

# install copies the files needed to run test Vitess using vtcombo into the given directory tree.
# Usage: make install PREFIX=/path/to/install/root
Expand Down Expand Up @@ -155,14 +163,13 @@ ifndef NOBANNER
echo $$(date): Compiling proto definitions
endif

# TODO(sougou): find a better way around this temp hack.
VTTOP=$(VTROOT)/../../..
$(PROTO_GO_OUTS): install_protoc-gen-go proto/*.proto
for name in $(PROTO_SRC_NAMES); do \
cd $(VTTOP)/src && \
$(VTROOT)/bin/protoc --go_out=plugins=grpc:. -Ivitess.io/vitess/proto vitess.io/vitess/proto/$${name}.proto && \
goimports -w $(VTROOT)/go/vt/proto/$${name}/$${name}.pb.go; \
$(VTROOT)/bin/protoc --go_out=plugins=grpc:. -Iproto proto/$${name}.proto && \
goimports -w vitess.io/vitess/go/vt/proto/$${name}/$${name}.pb.go; \
done
cp -Rf vitess.io/vitess/go/vt/proto/* go/vt/proto
rm -rf vitess.io/vitess/go/vt/proto/

# Helper targets for building Docker images.
# Please read docker/README.md to understand the different available images.
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function install_zookeeper() {
local dist="$2"

zk="zookeeper-$version"
wget "https://apache.org/dist/zookeeper/$zk/$zk.tar.gz"
wget "https://archive.apache.org/dist/zookeeper/$zk/$zk.tar.gz"
tar -xzf "$zk.tar.gz"
ant -f "$zk/build.xml" package
ant -f "$zk/zookeeper-contrib/zookeeper-contrib-fatjar/build.xml" jar
Expand Down
3 changes: 3 additions & 0 deletions config/mycnf/default-fast.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ innodb_doublewrite=0
# https://github.com/vitessio/vitess/issues/5396

sql_mode = STRICT_TRANS_TABLES

# set a short heartbeat interval in order to detect failures quickly
slave_net_timeout = 4
8 changes: 8 additions & 0 deletions config/orchestrator/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Debug": true,
"MySQLTopologyUser": "orc_client_user",
"MySQLTopologyPassword": "orc_client_user_password",
"MySQLReplicaUser": "vt_repl",
"MySQLReplicaPassword": "",
"RecoveryPeriodBlockSeconds": 5
}
2 changes: 1 addition & 1 deletion doc/TwoPhaseCommitDesign.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ The detailed design explains all the functionalities and interactions.

Currently, transaction ids are issued by VTTablets (VTID), and those ids are considered local. In order to coordinate distributed transactions, a new system is needed to identify and track them. This is needed mainly so that the watchdog process can pick up an orphaned transaction and resolve it to completion.

The DTID will be generated by taking the VTID of the MM and prefixing it with the keyspace, shard info and a sequence to prevent to prevent collisions. If the MM’s VTID was ‘1234’ for keyspace ‘order’ and shard ‘40-80’, then the DTID would be ‘order:40-80:1234’. A collision could still happen if there is a failover and the new vttablet’s starting VTID had overlaps with the previous instance. To prevent this, the starting VTID of the vttablet will be adjusted to a value higher than any used by the prepared GTIDs.
The DTID will be generated by taking the VTID of the MM and prefixing it with the keyspace, shard info and a sequence to prevent collisions. If the MM’s VTID was ‘1234’ for keyspace ‘order’ and shard ‘40-80’, then the DTID would be ‘order:40-80:1234’. A collision could still happen if there is a failover and the new vttablet’s starting VTID had overlaps with the previous instance. To prevent this, the starting VTID of the vttablet will be adjusted to a value higher than any used by the prepared GTIDs.

## Prepare API

Expand Down
Loading