Releases: vitessio/vitess
Vitess 11.0.0
This release complies with VEP-3 which removes the upgrade order requirement. Components can be upgraded in any order. It is recommended that the upgrade order should still be followed if possible, except to canary test the new version of VTGate before upgrading the rest of the components.
Known Issues
-
A critical vulnerability CVE-2021-44228 in the Apache Log4j logging library was disclosed on Dec 9 2021.
The project provided release2.15.0
with a patch that mitigates the impact of this CVE. It was quickly found that the initial patch was insufficient, and additional CVEs
CVE-2021-45046 and CVE-2021-44832 followed.
These have been fixed in release2.17.1
. This release of Vitess,v11.0.0
, uses a version of Log4j below2.17.1
, for this reason, we encourage you to use versionv11.0.4
instead, to benefit from the vulnerability patches. -
An issue where the value of the
-force
flag is used instead of-keep_data
flag's value in v2 vreplication workflows (#9174) is known to be present in this release. A workaround is available in the description of issue #9174.
Bug fixes
Build/CI
- update moby/term to fix darwin build issue #7787
- Removing Linux/amd64 specific subdependencies #7796
- CI: run some tests inside docker to workaround GH Actions issue #7868
- Fix flaky race condition in vtexplain #7930
- Fixing flaky endtoend/tablegc tests #7947
- Add libwww-perl to allow pt-osc wrapper to work in vitess/lite #8141
Cluster management
- Add missing return on a failed
GetShard
call inFindAllShardsInKeyspace
#7992 - Increase the default srv_topo_timeout #8011
- parser: support index name in FOREIGN KEY clause; Online DDL to reject FK clauses #8058
- Correctly parse cell names with dashes in tablet aliases #8167
- /healthz should not report ok when vttablet is not connected to mysql #8238
- [topo] Refactor
ExpandCells
to not error on valid aliases #8291 - tm state: don't populate metadata in updateLocked #8362
- [grpcvtctldserver] Fix backup detail limit math #8402
Query Serving
- fix select star, col1 orderby col1 bug. #7743
- VTExplain: Add support for multi table join query #7829
- Routing of Information Schema Queries #7841
- Fix + integration test for
keyspaces_to_watch
routing regression [fixes #7882] #7873 - Revert "[tablet, queryrules] Extend query rules to check comments" #7897
- vtctl: return error on invalid ddl_strategy #7923
- Panic when EOF after @ symbol #7925
- Fixes encoding of sql strings #8033
- Make TwoPC engine initialization async. #8048
- Fix for issue with information_schema queries with both table name and schema name predicates #8087
- Fix for transactions not allowed to finish during PlannedReparentShard #8089
- Set fully parsed to false when ignoring errors #8094
- Fix for query and sub query with limits #8097
- Fix buffering when using reserved connections #8102
- Parse generated columns in DDL #8117
- More explicit message on online DDL parsing error #8118
- healthcheck: attempt to update primary only if the current tablet is serving #8121
- PRIMARY in index hint list for master #8160
- Signed int parse #8189
- Delete table reference alias support #8393
- Fix for function calls in DEFAULT value of CREATE TABLE statement in release-11.0 #8476
- Backport: Fixing multiple issues related to onlineddl/lifecycle #8517
- boolean values should not be parenthesised in default clause - release 11 #8531
VReplication
- VDiff: Use byte compare if weight_string() returns null for either source or target #7696
- Rowlog: Update rowlog for the API change made for the vstream skew alignment feature #7809
- Pad binlog values for binary() columns to match the value returned by mysql selects #7969
- Change vreplication error metric name to start with a string to pass prometheus validations #7983
- Pass the provided keyspace through to
UpdateDisableQueryService
rather than hard-coding the sourceKeyspace #8020 - Fix vreplication timing metrics #8024
- Switchwrites: error if no tablets available on target for reverse replication #8142
- Remove noisy vexec logs #8144
- VReplicationExec: don't create new stats objects on a select #8166
- Binlog JSON Parser: handle inline types correctly for large documents #8187
- Schema Tracking Flaky Test: Ignore unrelated gtid progress events #8283
- Adds padding to keyrange comparison #8296
- VReplication Reverse Workflows: add keyspace scope to vindex while creating reverse vreplication streams #8385
- OnlineDDL/Vreplication stress test: investigating failures #8390
- Ignore SBR statements from pt-table-checksum #8396
- Return from throttler goroutine if context is cancelled to prevent goroutine leaks #8489
- VDiff: Add BIT datatype to list of byte comparable types #8401
- Fix excessive VReplication logging to file and db #8521
VTAdmin
- Add missing return in
vtctld-*
DSN case, and log any flag that gets ignored #7872 - [vtadmin-web] Do not parse numbers/booleans in URL query parameters by default #8100
- [vtadmin-web] Small bugfix where stream source displayed instead of target #8311
CI/Build
Build/CI
- Planbuilder: Fix fuzzer #7952
- java: Bump SNAPSHOT version to 11.0.0-SNAPSHOT after Vitess release v10 #7968
- Add optional TLS feature to gRPC servers #8049
- Add image and base image arguments to build.sh #8064
- [fuzzing] Add report #8128
- CI: fail PR if it does not have required labels #8147
- trigger pr-labels workflow when labels added/removed from PR #8157
- Add vmg as a maintainer #8186
- Refactor vtorc endtoend tests #8215
- Use shared testing helper which guards against races in tmclient construction #8300
- moved multiple vtgate and tabletgateway to individual shards #8305
- include squashed PRs in release notes #8326
- pr-labels workflow: only check actual PRs #8327
- Heuristic fix for a flaky test: allow for some noise to pass through #8339
- ci: upgrade to Go 1.16 #8274
- mod: upgrade etcd to stable version #8357
- Resolve go.mod issue with direct dependency on planetscale/tengo #8383
- Initial GitHub Docker Build Setup #8399
Cluster management
- make: build vitess as static binaries by default #7795
- Fix TableGC flaky test by reducing check interval #8270
Java
- Bump commons-io from 2.6 to 2.7 in /java #7953
Other
- Bump MySQL version for docker builds to 8.0.23 #7811
Query Serving
- Online DDL Vreplication test suite: adding tests #8213
- Online DDL/VReplication: more passing tests (no UK/PK) #8225
- Online DDL: reject ALTER TABLE...RENAME statements #8227
- Online DDL/VReplication: fail on existence of FOREIGN KEY #8228
- Online DDL/VReplication: test PK column case change #8336
- Online DDL/VReplication: add PK DATETIME->TIMESTAMP test #8338
- Bugfix: assign cexpr.references for column CONVERTed to utf8mb4 #8355
VReplication
- Towards a VReplication/OnlineDDL testing suite #8181
- Online DDL/Vreplication: column type awareness #8239
- remove duplicate ReadMigrations, fixing build #8258
- VReplication (and by product, Online DDL): support GENERATED column as part of PRIMARY KEY #8335
vttestserver
- docker/vttestserver: Set max_connections in default-fast.cnf at container build time #7810
Documentation
Cluster management
- Enhance k8stopo flag documentation #8458
Build/CI
- Update version for latest snapshot #7801
- v10 GA Release Notes #7964
- Updates and Corrections to v9 Release Notes #8295
Query Serving
- Update link to 'Why FK not supported in Online DDL' blog post #8372
Other
- correct several wrong words #7822
- MAINTAINERS.md: Update enisoc's email. #7909
- Modification of the Markdown list format in the release notes template #7962
- Update vreplicator docs #8014
- Release notes: add Known Issues #8027
Enhancement
Observability
- [trace] Add logging support to opentracing plugins #8289
Build/CI
- Makefile: add cross-build target for cross-compiling client binaries #7806
- git: improve signoff detection #7852
- Release notes generation #7932
- vitess/lite docker build fails for mysql80 #7943
- Fix a gofmt warning #7959
- docker/vttestserver/run.sh: Add $CHARSET environment variable #7970
- docker/lite/install_dependencies.sh: If the dependency install loop reaches its max number of retries, consider that a failure; exit the script nonzero so the build halts. #7976
- Add commit count and authors to the release notes #7982
- Automate version naming and release tagging #8034
- Make sure to only allow codegen when the rest of the code compiles #8169
- Add options to vttestserver to pass -foreign_key_mode, -enable_online_ddl, and -enable_direct_ddl through to vtcombo #8177
Cluster management
- Dynamic throttle metric threshold #7742
- Bump Bootstrap version, per CVE-2018-14040 (orchestrator/vtorc) #7824
- Check tablet alias before removing after error stream #7915
- vttablet/tabletmanager - add additional test for tmstate.Open() #7993
- Add
vttablet_restore_done
hook #8007 - Added ValidateVSchema #8012
- Add RemoteOperationTimeout to both legacy and grpc
ChangeTabletType
implementations. #8052 - [vtctldserver] Add guard against self-reparent, plus misc updates #8084
- [tm_state] updateLocked should re-populate local metadata tables to reflect promotion rule changes #8107
- [vtctld] Migrate
ApplyVSchema
toVtctldServer
#8113 - vtctl.generateShardRanges -> key.GenerateShardRanges #8134
- etcd: add grpc.WithBlock to client config #8205
- [workflow] Add tracing to
GetWorkflows
endpoint #8266 - [vtctldclient] Add...
Vitess 11.0.0-rc1
This release complies with VEP-3 which removes the upgrade order requirement. Components can be upgraded in any order. It is recommended that the upgrade order should still be followed if possible, except to canary test the new version of VTGate before upgrading the rest of the components.
Bug fixes
Build/CI
- update moby/term to fix darwin build issue #7787
- Removing Linux/amd64 specific subdependencies #7796
- CI: run some tests inside docker to workaround GH Actions issue #7868
- Fix flaky race condition in vtexplain #7930
- Fixing flaky endtoend/tablegc tests #7947
- Add libwww-perl to allow pt-osc wrapper to work in vitess/lite #8141
Cluster management
- Add missing return on a failed
GetShard
call inFindAllShardsInKeyspace
#7992 - Increase the default srv_topo_timeout #8011
- parser: support index name in FOREIGN KEY clause; Online DDL to reject FK clauses #8058
- Correctly parse cell names with dashes in tablet aliases #8167
- /healthz should not report ok when vttablet is not connected to mysql #8238
- [topo] Refactor
ExpandCells
to not error on valid aliases #8291 - tm state: don't populate metadata in updateLocked #8362
- [grpcvtctldserver] Fix backup detail limit math #8402
Query Serving
- fix select star, col1 orderby col1 bug. #7743
- VTExplain: Add support for multi table join query #7829
- Routing of Information Schema Queries #7841
- Fix + integration test for
keyspaces_to_watch
routing regression [fixes #7882] #7873 - Revert "[tablet, queryrules] Extend query rules to check comments" #7897
- vtctl: return error on invalid ddl_strategy #7923
- Panic when EOF after @ symbol #7925
- Fixes encoding of sql strings #8033
- Make TwoPC engine initialization async. #8048
- Fix for issue with information_schema queries with both table name and schema name predicates #8087
- Fix for transactions not allowed to finish during PlannedReparentShard #8089
- Set fully parsed to false when ignoring errors #8094
- Fix for query and sub query with limits #8097
- Fix buffering when using reserved connections #8102
- Parse generated columns in DDL #8117
- More explicit message on online DDL parsing error #8118
- healthcheck: attempt to update primary only if the current tablet is serving #8121
- PRIMARY in index hint list for master #8160
- Signed int parse #8189
- Delete table reference alias support #8393
VReplication
- VDiff: Use byte compare if weight_string() returns null for either source or target #7696
- Rowlog: Update rowlog for the API change made for the vstream skew alignment feature #7809
- VReplication: Pad binlog values for binary() columns to match the value returned by mysql selects #7969
- Change vreplication error metric name to start with a string to pass prometheus validations #7983
- Pass the provided keyspace through to
UpdateDisableQueryService
rather than hard-coding the sourceKeyspace #8020 - vreplication: fix vreplication timing metrics #8024
- Switchwrites: error if no tablets available on target for reverse replication #8142
- VReplication: remove noisy vexec logs #8144
- VReplicationExec: don't create new stats objects on a select #8166
- Binlog JSON Parser: handle inline types correctly for large documents #8187
- Schema Tracking Flaky Test: Ignore unrelated gtid progress events #8283
- Adds padding to keyrange comparison #8296
- VReplication Reverse Workflows: add keyspace scope to vindex while creating reverse vreplication streams #8385
VTAdmin
- Add missing return in
vtctld-*
DSN case, and log any flag that gets ignored #7872 - [vtadmin-web] Do not parse numbers/booleans in URL query parameters by default #8100
- [vtadmin-web] Small bugfix where stream source displayed instead of target #8311
CI/Build
Build/CI
- Planbuilder: Fix fuzzer #7952
- java: Bump SNAPSHOT version to 11.0.0-SNAPSHOT after Vitess release v10 #7968
- Add optional TLS feature to gRPC servers #8049
- Add image and base image arguments to build.sh #8064
- [fuzzing] Add report #8128
- CI: fail PR if it does not have required labels #8147
- trigger pr-labels workflow when labels added/removed from PR #8157
- Add vmg as a maintainer #8186
- Refactor vtorc endtoend tests #8215
- Use shared testing helper which guards against races in tmclient construction #8300
- moved multiple vtgate and tabletgateway to individual shards #8305
- include squashed PRs in release notes #8326
- pr-labels workflow: only check actual PRs #8327
- Heuristic fix for a flaky test: allow for some noise to pass through #8339
- ci: upgrade to Go 1.16 #8274
- mod: upgrade etcd to stable version #8357
- Resolve go.mod issue with direct dependency on planetscale/tengo #8383
- Initial GitHub Docker Build Setup #8399
Cluster management
- make: build vitess as static binaries by default #7795
- Fix TableGC flaky test by reducing check interval #8270
Java
- Bump commons-io from 2.6 to 2.7 in /java #7953
Other
- Bump MySQL version for docker builds to 8.0.23 #7811
Query Serving
- Online DDL Vreplication test suite: adding tests #8213
- Online DDL/VReplication: more passing tests (no UK/PK) #8225
- Online DDL: reject ALTER TABLE...RENAME statements #8227
- Online DDL/VReplication: fail on existence of FOREIGN KEY #8228
- Online DDL/VReplication: test PK column case change #8336
- Online DDL/VReplication: add PK DATETIME->TIMESTAMP test #8338
- Bugfix: assign cexpr.references for column CONVERTed to utf8mb4 #8355
VReplication
- Towards a VReplication/OnlineDDL testing suite #8181
- Online DDL/Vreplication: column type awareness #8239
- remove duplicate ReadMigrations, fixing build #8258
- VReplication (and by product, Online DDL): support GENERATED column as part of PRIMARY KEY #8335
vttestserver
- docker/vttestserver: Set max_connections in default-fast.cnf at container build time #7810
Documentation
Build/CI
- Update version for latest snapshot #7801
- v10 GA Release Notes #7964
- Updates and Corrections to v9 Release Notes #8295
Query Serving
- Update link to 'Why FK not supported in Online DDL' blog post #8372
Other
- correct several wrong words #7822
- MAINTAINERS.md: Update enisoc's email. #7909
- Modification of the Markdown list format in the release notes template #7962
- Update vreplicator docs #8014
- Release notes: add Known Issues #8027
Enhancement
Observability
- [trace] Add logging support to opentracing plugins #8289
Build/CI
- Makefile: add cross-build target for cross-compiling client binaries #7806
- git: improve signoff detection #7852
- Release notes generation #7932
- vitess/lite docker build fails for mysql80 #7943
- Fix a gofmt warning #7959
- docker/vttestserver/run.sh: Add $CHARSET environment variable #7970
- docker/lite/install_dependencies.sh: If the dependency install loop reaches its max number of retries, consider that a failure; exit the script nonzero so the build halts. #7976
- Add commit count and authors to the release notes #7982
- Automate version naming and release tagging #8034
- Make sure to only allow codegen when the rest of the code compiles #8169
- Add options to vttestserver to pass -foreign_key_mode, -enable_online_ddl, and -enable_direct_ddl through to vtcombo #8177
Cluster management
- Dynamic throttle metric threshold #7742
- Bump Bootstrap version, per CVE-2018-14040 (orchestrator/vtorc) #7824
- Check tablet alias before removing after error stream #7915
- vttablet/tabletmanager - add additional test for tmstate.Open() #7993
- Add
vttablet_restore_done
hook #8007 - Added ValidateVSchema #8012
- Add RemoteOperationTimeout to both legacy and grpc
ChangeTabletType
implementations. #8052 - [vtctldserver] Add guard against self-reparent, plus misc updates #8084
- [tm_state] updateLocked should re-populate local metadata tables to reflect promotion rule changes #8107
- [vtctld] Migrate
ApplyVSchema
toVtctldServer
#8113 - vtctl.generateShardRanges -> key.GenerateShardRanges #8134
- etcd: add grpc.WithBlock to client config #8205
- [workflow] Add tracing to
GetWorkflows
endpoint #8266 - [vtctldclient] Add legacy shim #8284
- [vtctldserver] Add tracing #8285
- [vtctldserver] Add additional backup info fields #8321
- [workflow] Call
scanWorkflow
concurrently #8272
Query Serving
- [Gen4] Implemented table alias functionality in the semantic analysis #7629
- Improved error messages (tabletserver) #7747
- Allow modification of tablet unhealthy_threshold via debugEnv #7753
- [Gen4] Initial Horizon Planning #7775
- [tablet, queryrules] Extend query rules to check comments #7784
- Add support for showing global gtid executed per shard #7856
- Minor cleanups around errors on the vtgate #7864
- log unsupported queries #7865
- Show databases like #7912
- Add rank as reserved keyword #7944
- Online DDL: introducing ddl_strategy
-singleton-context
flag #7946 - Ignore the error and log as warn if not able to validate the current system setting for check and ignore case #8004
- Detect and signal schema changes on vttablets #8005
- DDL bypass plan #8013
- Online DDL: progress & ETA for Vreplication migrations #8015
- Scatter errors as warning in olap query #8018
- livequeryz: livequeryz/terminate link should be relative #8025
- Handle online DDL user creation if we do not have SUPER privs (e.g. AWS Aurora) #8038
- Update the schema copy with minimal changes #8067
- Gen4: Support for order by column not present in projection #8070
- Schema tracking in vtgate #8074
- protobuf: upgrade #8075
- added mysql 8.0 reserved keywords #8086
- Fix ghost/pt-osc in the external DB case where MySQL might be reporting #8115
- Support for vtgate -enable_direct_ddl flag #8116...
Vitess 10.0.2
Known Issues
-
A critical vulnerability CVE-2021-44228 in the Apache Log4j logging library was disclosed on Dec 9 2021.
The project provided release2.15.0
with a patch that mitigates the impact of this CVE. It was quickly found that the initial patch was insufficient, and additional CVEs
CVE-2021-45046 and CVE-2021-44832 followed.
These have been fixed in release2.17.1
. This release of Vitess,v10.0.2
, uses a version of Log4j below2.17.1
, for this reason, we encourage you to use versionv10.0.5
instead, to benefit from the vulnerability patches. -
An issue where the value of the
-force
flag is used instead of-keep_data
flag's value in v2 vreplication workflows (#9174) is known to be present in this release. A workaround is available in the description of issue #9174.
Bug fixes
Query Serving
- Fixes encoding of sql strings #8029
- Fix for issue with information_schema queries with both table name and schema name predicates #8099
- PRIMARY in index hint list for release 10.0 #8159
VReplication
- VReplication: Pad binlog values for binary() columns to match the value returned by mysql selects #8137
CI/Build
Build/CI
- update release notes with known issue #8081
Documentation
Other
- Post v10.0.1 updates #8045
Enhancement
Build/CI
- Added release script to the makefile #8030
Other
- Add optional TLS feature to gRPC servers #8176
Other
Build/CI
- Release 10.0.1 #8031
The release includes 14 commits (excluding merges)
Thanks to all our contributors: @GuptaManan100, @askdba, @deepthi, @harshit-gangal, @noxiouz, @rohit-nayak-ps, @systay
Vitess 9.0.2
Bug fixes
Cluster management
- Restore: Check disable_active_reparents properly before waiting for position update #8114
Query Serving
- Fix information_schema query with system schema in table_schema filter #8095
- Fix for issue with information_schema queries with both table name and schema name predicates #8096
- Fix for transactions not allowed to finish during PlannedReparentShard #8098
- PRIMARY in index hint list #8158
CI/Build
Build/CI
- Release 9.0.1 #8065
- 9.0.0: update release notes with known issue #8080 #8082
- Added release script to the makefile #8182
- Update do_release to work in the 9.0 branch #8184
Performance
Cluster management
- Revert "backup: Use pargzip instead of pgzip for compression." #8174
The release includes 17 commits (excluding merges)
Thanks to all our contributors: @GuptaManan100, @deepthi, @HARSHIT, @rafael, @systay
Vitess 9.0.1
This release complies with VEP-3 which removes the upgrade order requirement. Components can be upgraded in any order. It is recommended that the upgrade order should still be followed if possible, except to canary test the new version of VTGate before upgrading the rest of the components.
Bug fixes
Cluster management
- Backport: Respect -disable_active_reparents in backup/restore #8063
Other
- [9.0] fix regression - should be able to plan subquery on top of subquery #7683
Query Serving
- [9.0] Fix for reserved connection usage with transaction #7666
- [9.0] Fix MySQL Workbench failure on login with
select current_user()
#7706 - [9.0] make sure to handle subqueries on top of subqueries #7776
- [9.0] make sure to not log sensitive information #7778
- [9.0] ddl bypass planner #8035
- [9.0] Memory Sort to close the goroutines when callback returns error #8040
- [9.0] Fix bug with reserved connections to stale tablets #8041
- [9.0] Fix for Query Serving when Toposerver is Down #8046
- ignore the error and log as warn if not able to validate the current system settings value #8062
VReplication
- VReplication: fix vreplication timing metrics #8060
- VReplication: Pad binlog values for binary() columns to match the value returned by mysql selects #8061
Documentation
Other
- 9.0.0 Release Notes #7384
Other
Build/CI
- Fix Dockerfiles for vtexplain and vtctlclient #7418
Query Serving
- Fix table parsing on VSchema generation #7511
- [9.0] Show anywhere plan fix to consider default keyspace #7530
- [9.0] Reset Session for Reserved Connection when the connection id is not found #7544
- Healthcheck: update healthy tablets correctly when a stream returns an error or times out #7732
VReplication
- MoveTables: Refresh SrvVSchema and source tablets on completion #8059
The release includes 43 commits (excluding merges)
Thanks to all our contributors: @askdba, @deepthi, @dyv, @harshit-gangal, @rafael, @rohit-nayak-ps, @shlomi-noach, @systay
Vitess 10.0.1 Release
Known Issues
-
A critical vulnerability CVE-2021-44228 in the Apache Log4j logging library was disclosed on Dec 9 2021.
The project provided release2.15.0
with a patch that mitigates the impact of this CVE. It was quickly found that the initial patch was insufficient, and additional CVEs
CVE-2021-45046 and CVE-2021-44832 followed.
These have been fixed in release2.17.1
. This release of Vitess,v10.0.1
, uses a version of Log4j below2.17.1
, for this reason, we encourage you to use versionv10.0.5
instead, to benefit from the vulnerability patches. -
An issue where the value of the
-force
flag is used instead of-keep_data
flag's value in v2 vreplication workflows (#9174) is known to be present in this release. A workaround is available in the description of issue #9174.
Bugs Fixed
- Running binaries with
--version
or calling @@Version from a MySQL client still shows10.0.0-RC1
Vitess 10.0.0
This release complies with VEP-3 which removes the upgrade order requirement. Components can be upgraded in any order. It is recommended that the upgrade order should still be followed if possible, except to canary test the new version of VTGate before upgrading the rest of the components.
Known Issues
-
Running binaries with
--version
or runningselect @@version
from a MySQL client still shows10.0.0-RC1
-
Online DDL cannot be used if you are using the keyspace filtering feature of VTGate
-
VReplication errors when a fixed-length binary column is used as the sharding key #8080
-
A critical vulnerability CVE-2021-44228 in the Apache Log4j logging library was disclosed on Dec 9 2021.
The project provided release2.15.0
with a patch that mitigates the impact of this CVE. It was quickly found that the initial patch was insufficient, and additional CVEs
CVE-2021-45046 and CVE-2021-44832 followed.
These have been fixed in release2.17.1
. This release of Vitess,v10.0.0
, uses a version of Log4j below2.17.1
, for this reason, we encourage you to use versionv10.0.5
instead, to benefit from the vulnerability patches. -
An issue where the value of the
-force
flag is used instead of-keep_data
flag's value in v2 vreplication workflows (#9174) is known to be present in this release. A workaround is available in the description of issue #9174.
Bugs Fixed
VTGate / MySQL compatibility
- Remove printing of ENFORCED word so that statements remain compatible with mysql 5.7 #7458
- Allow any ordering of generic options in column definitions #7459
- Corrects the comment handling in vitess #7581
- Fix regression - should be able to plan subquery on top of subquery #7682
- Nullable Timestamp Column Fix #7740
- VTGate: Fix the error messages in drop, create and alter database commands #7397
- VTGate: Fix information_schema query with system schema in table_schema filter #7430
- VTGate: Fix Set Statement in Tablet when executed with bindvars #7431
- VTGate: Fix for Query Serving when Toposerver is Down #7484
- VTGate: Add necessary bindvars when preparing queries #7493
- VTGate: Show anywhere plan fix to consider default keyspace #7531
- VTGate: Fix table parsing on VSchema generation #7511
- VTGate: Use the emulated MySQL version for special comments #7510
- VTGate: Reset Session for Reserved Connection when the connection id is not found #7539
- VTGate: Healthcheck: update healthy tablets correctly when a stream returns an error or timeout #7732
- VTGate: Fix for reserved connection usage with transaction #7646
- VTGate: Fix MySQL Workbench failure on login with
select current_user()
#7705 - VTGate: Constraint names and database names with spaces. #7745
- VTGate: Fix dual table query when system schema is selected database #7734
Other
- VTTablet: Correctly initialize statsTabletTypeCounts during startup #7390
- Backup/Restore: Respect -disable_active_reparents in backup/restore #7576
- Backup/Restore: check disable_active_reparents properly before waiting for position update #7703
Functionality Added or Changed
VTGate / MySQL compatibility / Query Serving
- VTGate: Gen4 Planner: AxB vs BxA #7274
- VTGAte: Gen4 fallback planning #7370
- VTGate: Support for CALL procedures #7287
- VTGate: Set default for @@workload to OLTP #7288
- VTGate: Change @@Version and @@version_comment #7337
- VTGate: Fix VitessAware system variables of type boolean return NULL when MySQL is not involved #7353
- VTGate: Add stats for RowsAffected similar to RowsReturned #7380
- VTGate: Added information_schema_stats_expiry to allowed list of set vars #7435
- VTGate: LFU Cache Implementation #7439
- VTGate: Describe table to route based on table name and qualifier #7445
- VTGate: Olap error message fix #7448
- VTGate: Temporary Table support in unsharded keyspace #7411
- VTGate: Publish table size on schema #7444
- VTGate: Support for caching_sha2_password plugin in mysql/client #6716
- VTGate: Moving Show plan from executor to planbuilder #7475
- VTGate: Adds another case to merge routes for information_schema queries #7504
- VTGate: Add innodb_read_rows as vttablet metric #7520
- VTGate: Adds support for Show variables #7547
- VTGate: gen4: fail unsupported queries #7409
- VTGate: Fix Metadata in SHOW queries #7540
- VTGate: Update AST helper generation #7558
- VTGate: Avoiding addition of redundant unary operators #7579
- VTGate: Optimise AST rewriting #7583
- VTGate: Add Show Status query to vtexplain and make asthelpergen/sizegen quiet #7590
- VTGate: Add support for SELECT ALL #7593
- VTGate: Empty statement error code change in sql parsing #7618
- VTGate: Socket system variable to return vitess mysql socket #7637
- VTGate: Make DROP/CREATE DATABASE pluggable #7381
- VTGate: Allow Select with lock to pass through in vttablet #7584
- VTGate: Fix ordering in SELECT INTO and printing of strings #7655
- VTGate: AST Equals code generator #7672
- VTGate: [tabletserver] More resilient wait for schema changes #7684
- VTGate: Fix flush statement planner #7695
- VTGate: Produce query warnings for using features not supported when sharded #7538
- VTGate: Support for ALTER VITESS_MIGRATION statements #7663
- VTGate: Solve I_S queries using CNF rewriting #7677
- VTGate: System schema queries #7685
- VTGate: Make the AST visitor faster #7701
- VTGate: COM_PREPARE - Single TCP response packet with all MySQL Packets #7713
- VTGate: Replace the database name in result fields only if needed #7714
- VTGate: Split ast_helper into individual gen files #7727
- VTGate: Adds support for ordering on character fields for sharded keyspace queries #7678
- VTGate: Show columns query on system schema #7729
- VTGate: Disallow foreign key constraint on ddl #7780
- VTGate: VTGate: support -enable_online_ddl flag #7694
- VTGate: Default to false for system settings to be changed per session at the database connection level #7921
- VTGate: vtctl: return error on invalid ddl_strategy #7924
- VTGate: [10.0] Squashed backport of #7903 #7927
- VTGate: [10.0] Fix bug with reserved connections to stale tablets #7935
- VTGate: [10.0] Fix for keyspaces_to_watch regression #7936
- VTGate: [10.0] Update healthy tablets correctly for primary down #7937
- VTGate: [10.0] Allow modification of tablet unhealthy_threshold via debugEnv #7938
Testing
- Fuzzing: Add vtctl fuzzer #7605
- Fuzzing: Add more fuzzers #7622
- Fuzzing: Add 3 fuzzers for mysql endpoints #7639
- Fuzzing: Add oss-fuzz build script #7591
- Fuzzing: Add requirement for minimum length of input data #7722
- Fuzzing: Add new mysql fuzzer #7660
- Fuzzing: Add [grpcvtgateconn] fuzzer #7689
- Fuzzing: Make mysql fuzzer more calls during each iteration #7766
Performance
- VTGate: [perf] zero-copy tokenizer #7619
- VTGate: [perf: sqlparser faster formatting #7710
- VTGate :[perf] Cache reserved bind variables in queries #7698
- VTGate: [perf] sqlparser yacc codegen #7669
- VTGate: Making fast AST rewriter faster #7726
- VTGate: Cached Size Implementation #7387
- VTGate: Plan remove mutexes #7468
- LFU Cache Bug Fixes #7479
- [cache] Handle all possible initialization cases #7556
- VTGate: [servenv] provide a global flag for profiling #7496
- VTGate: [vttablet] Benchmarks and two small optimizations #7560
- [pprof]: allow stopping profiling early with a signal #7594
- perf: RPC Serialization #7519
- perf: keyword lookups in the tokenizer #7606
Cluster Management
- [vtctld] Migrate topo management RPCs #7395
- [vtctldclient] Set
SilenceErrors
on the root command, so we don't double-log #7404 - [vtctldclient] Command line flags: dashes and underscores synonyms #7406
- Extract the
maxReplPosSearch
struct out totopotools
#7420 - Add protoutil package, refactor ISP to use it #7421
- Add
ErrorGroup
to package concurrency, use inwaitOnNMinusOneTablets
#7429 - [vtctld / wrangler] Extract some reparent methods out to functions for shared use between wrangler and VtctldServer #7434
- [vtctld/wrangler] Extract
EmergencyReparentShard
logic to dedicated struct and add unit tests #7464 - Provide named function for squashing usage errors; start using it #7451
- [concurrency] Add guard against potentially blocking forever in ErrorGroup.Wait() when NumGoroutines is 0 #7463
- Add hook for statsd integration #7417
- [concurrency] Add guard against potentially blocking forever in ErrorGroup.Wait() when NumGoroutines is 0 #7463
- Resilient rebuild keyspace graph check, tablet controls not in
RebuildKeyspaceGraph
command #7442 - [reparentutil / ERS] confirm at least one replica succeeded to
SetMaster
, or fail #7486 - [reparentutil / wrangler] Extract PlannedReparentShard logic from wrangler to PlannedReparenter struct #7501
- Add backup/restore duration stats #7512
- Refresh replicas and rdonly after MigrateServedTypes except on skipRefreshState. #7327
- [eparentutil] ERS should not attempt to WaitForRelayLogsToApply on primary tablets that were not running replication #7523
- [orchestrator] prevent XSS attack via 'orchestrator-msg' params #7526
- [vtctld] Add remaining reparent commands to VtctldServer #7536
- [reparentutil] ERS should not attempt to WaitForRelayLogsToApply on primary tablets that were not running replication #7523
- Shutdown vttablet gracefully if tablet record disappears #7563
- ApplySchema: -skip_preflight #7587
- Table GC: disable binary logging on best effort basis #7588
- Addition of waitSig pprof argument to start recording on USR1 #7616
- Add combine TLS certs feature #7609
- Check error response before attempting to access InitSh...
Vitess 10.0.0-rc1
This release complies with VEP-3 which removes the upgrade order requirement. Components can be upgraded in any order. It is recommended that the upgrade order should still be followed if possible, except to canary test the new version of VTGate before upgrading the rest of the components.
The following PRs made changes to behaviors that clients might rely on. They should be reviewed carefully so that client code can be changed in concert with a Vitess release deployment.
Bugs Fixed
VTGate / MySQL compatibility
- Remove printing of ENFORCED word so that statements remain compatible with mysql 5.7 #7458
- Allow any ordering of generic options in column definitions #7459
- Corrects the comment handling in vitess #7581
- Fix regression - should be able to plan subquery on top of subquery #7682
- Nullable Timestamp Column Fix #7740
- VTGate: Fix the error messages in drop, create and alter database commands #7397
- VTGate: Fix information_schema query with system schema in table_schema filter #7430
- VTGate: Fix Set Statement in Tablet when executed with bindvars #7431
- VTGate: Fix for Query Serving when Toposerver is Down #7484
- VTGate: Add necessary bindvars when preparing queries #7493
- VTGate: Show anywhere plan fix to consider default keyspace #7531
- VTGate: Fix table parsing on VSchema generation #7511
- VTGate: Use the emulated MySQL version for special comments #7510
- VTGate: Reset Session for Reserved Connection when the connection id is not found #7539
- VTGate: Healthcheck: update healthy tablets correctly when a stream returns an error or timeout #7732
- VTGate: Fix for reserved connection usage with transaction #7646
- VTGate: Fix MySQL Workbench failure on login with
select current_user()
#7705 - VTGate: Constraint names and database names with spaces. #7745
- VTGate: Fix dual table query when system schema is selected database #7734
Other
- VTTablet: Correctly initialize statsTabletTypeCounts during startup #7390
- Backup/Restore: Respect -disable_active_reparents in backup/restore #7576
- Backup/Restore: check disable_active_reparents properly before waiting for position update #7703
Functionality Added or Changed
VTGate / MySQL compatibility / Query Serving
- VTGate: Gen4 Planner: AxB vs BxA #7274
- VTGAte: Gen4 fallback planning #7370
- VTGate: Support for CALL procedures #7287
- VTGate: Set default for @@workload to OLTP #7288
- VTGate: Change @@Version and @@version_comment #7337
- VTGate: Fix VitessAware system variables of type boolean return NULL when MySQL is not involved #7353
- VTGate: Add stats for RowsAffected similar to RowsReturned #7380
- VTGate: Added information_schema_stats_expiry to allowed list of set vars #7435
- VTGate: LFU Cache Implementation #7439
- VTGate: Describe table to route based on table name and qualifier #7445
- VTGate: Olap error message fix #7448
- VTGate: Temporary Table support in unsharded keyspace #7411
- VTGate: Publish table size on schema #7444
- VTGate: Support for caching_sha2_password plugin in mysql/client #6716
- VTGate: Moving Show plan from executor to planbuilder #7475
- VTGate: Adds another case to merge routes for information_schema queries #7504
- VTGate: Add innodb_read_rows as vttablet metric #7520
- VTGate: Adds support for Show variables #7547
- VTGate: gen4: fail unsupported queries #7409
- VTGate: Fix Metadata in SHOW queries #7540
- VTGate: Update AST helper generation #7558
- VTGate: Avoiding addition of redundant unary operators #7579
- VTGate: Optimise AST rewriting #7583
- VTGate: Add Show Status query to vtexplain and make asthelpergen/sizegen quiet #7590
- VTGate: Add support for SELECT ALL #7593
- VTGate: Empty statement error code change in sql parsing #7618
- VTGate: Socket system variable to return vitess mysql socket #7637
- VTGate: Make DROP/CREATE DATABASE pluggable #7381
- VTGate: Allow Select with lock to pass through in vttablet #7584
- VTGate: Fix ordering in SELECT INTO and printing of strings #7655
- VTGate: AST Equals code generator #7672
- VTGate: [tabletserver] More resilient wait for schema changes #7684
- VTGate: Fix flush statement planner #7695
- VTGate: Produce query warnings for using features not supported when sharded #7538
- VTGate: Support for ALTER VITESS_MIGRATION statements #7663
- VTGate: Solve I_S queries using CNF rewriting #7677
- VTGate: System schema queries #7685
- VTGate: Make the AST visitor faster #7701
- VTGate: COM_PREPARE - Single TCP response packet with all MySQL Packets #7713
- VTGate: Replace the database name in result fields only if needed #7714
- VTGate: Split ast_helper into individual gen files #7727
- VTGate: Adds support for ordering on character fields for sharded keyspace queries #7678
- VTGate: Show columns query on system schema #7729
- VTGate: Disallow foreign key constraint on ddl #7780
- VTGate: VTGate: support -enable_online_ddl flag #7694
Testing
- Fuzzing: Add vtctl fuzzer #7605
- Fuzzing: Add more fuzzers #7622
- Fuzzing: Add 3 fuzzers for mysql endpoints #7639
- Fuzzing: Add oss-fuzz build script #7591
- Fuzzing: Add requirement for minimum length of input data #7722
- Fuzzing: Add new mysql fuzzer #7660
- Fuzzing: Add [grpcvtgateconn] fuzzer #7689
- Fuzzing: Make mysql fuzzer more calls during each iteration #7766
Performance
- VTGate: [perf] zero-copy tokenizer #7619
- VTGate: [perf: sqlparser faster formatting #7710
- VTGate :[perf] Cache reserved bind variables in queries #7698
- VTGate: [perf] sqlparser yacc codegen #7669
- VTGate: Making fast AST rewriter faster #7726
- VTGate: Cached Size Implementation #7387
- VTGate: Plan remove mutexes #7468
- LFU Cache Bug Fixes #7479
- [cache] Handle all possible initialization cases #7556
- VTGate: [servenv] provide a global flag for profiling #7496
- VTGate: [vttablet] Benchmarks and two small optimizations #7560
- [pprof]: allow stopping profiling early with a signal #7594
- perf: RPC Serialization #7519
- perf: keyword lookups in the tokenizer #7606
Cluster Management
- [vtctld] Migrate topo management RPCs #7395
- [vtctldclient] Set
SilenceErrors
on the root command, so we don't double-log #7404 - [vtctldclient] Command line flags: dashes and underscores synonyms #7406
- Extract the
maxReplPosSearch
struct out totopotools
#7420 - Add protoutil package, refactor ISP to use it #7421
- Add
ErrorGroup
to package concurrency, use inwaitOnNMinusOneTablets
#7429 - [vtctld / wrangler] Extract some reparent methods out to functions for shared use between wrangler and VtctldServer #7434
- [vtctld/wrangler] Extract
EmergencyReparentShard
logic to dedicated struct and add unit tests #7464 - Provide named function for squashing usage errors; start using it #7451
- [concurrency] Add guard against potentially blocking forever in ErrorGroup.Wait() when NumGoroutines is 0 #7463
- Add hook for statsd integration #7417
- [concurrency] Add guard against potentially blocking forever in ErrorGroup.Wait() when NumGoroutines is 0 #7463
- Resilient rebuild keyspace graph check, tablet controls not in
RebuildKeyspaceGraph
command #7442 - [reparentutil / ERS] confirm at least one replica succeeded to
SetMaster
, or fail #7486 - [reparentutil / wrangler] Extract PlannedReparentShard logic from wrangler to PlannedReparenter struct #7501
- Add backup/restore duration stats #7512
- Refresh replicas and rdonly after MigrateServedTypes except on skipRefreshState. #7327
- [eparentutil] ERS should not attempt to WaitForRelayLogsToApply on primary tablets that were not running replication #7523
- [orchestrator] prevent XSS attack via 'orchestrator-msg' params #7526
- [vtctld] Add remaining reparent commands to VtctldServer #7536
- [reparentutil] ERS should not attempt to WaitForRelayLogsToApply on primary tablets that were not running replication #7523
- Shutdown vttablet gracefully if tablet record disappears #7563
- ApplySchema: -skip_preflight #7587
- Table GC: disable binary logging on best effort basis #7588
- Addition of waitSig pprof argument to start recording on USR1 #7616
- Add combine TLS certs feature #7609
- Check error response before attempting to access InitShardPrimary response #7658
- [vtctld] Migrate GetSrvKeyspace as GetSrvKeyspaces in VtctldServer #7680
- [vtctld] Migrate ShardReplicationPositions #7690
- [reparentutil | ERS] Bind status variable to each goroutine in WaitForRelayLogsToApply #7692
- [servenv] Fix var shadowing caused by short variable declaration #7702
- [vtctl|vtctldserver] List/Get Tablets timeouts #7715
- vtctl ApplySchema supports '-request_context' flag #7777
VReplication
- VReplication: vstreamer to throttle on source endpoint #7324
- VReplication: Throttle on target tablet #7364
- VReplication: Throttler: fix to client usage in vreplication and table GC #7422
- VReplication: MoveTables/Reshard add flags to start workflows in a stopped state and to stop workflow once copy is completed #7449
- VReplication: Support for caching_sha2_password plugin in mysql/client #6716
- VReplication: Validate SrvKeyspace during Reshard/SwitchReads #7481
- VReplication: [MoveTables] Refresh SrvVSchema (for Routing Rules) and source tablets (for Blacklisted Tables) on completion #7505
- VReplication : Data migration from another Vitess cluster #7546
- VReplication : [materialize] Add cells and tablet_types parameters #7562
- VReplication: JSON Columns: fix bug where vreplication of update statements were failing #7640
- VReplication: Make the frequency at which heartbeats update the _vt.vreplication table configurable #7659
- VReplication: Error out if binlog compression is turned on #7670
- VReplication: Tablet throttler: support for custom query & threshold #7541
- VStream API: allow aligning streams from different shards to minimize skews across the streams #7626
OnlineDDL
- Onlin...
Vitess 9.0.0
This release complies with VEP-3 which removes the upgrade order requirement. Components can be upgraded in any order. It is recommended that the upgrade order should still be followed if possible, except to canary test the new version of VTGate before upgrading the rest of the components.
Incompatible Changes
The following PRs made changes to behaviors that clients might rely on. They should be reviewed carefully so that client code can be changed in concert with a Vitess release deployment.
- The update to golang 1.15 (#7204) might break systems that use TLS certificates with a common name. A fix is documented here (golang/go#40748 (comment))
Vitess 9.0 is not compatible with the previous release of the Vitess Kubernetes Operator (2.2.0). A new version of the Operator (2.3.0) is available that is compatible.
Known Issue(s)
- VReplication errors when a fixed-length binary column is used as the sharding key #8080
Bugs Fixed
VTGate / MySQL compatibility
- Set Global #6957
- Set udv allow more expressions #6964
- Bug which caused the connection to not close in case of error writing an error packet #6977
- Bug fix #7048 for SelectNone in StreamExecute route engine #7050
Other
- Binary PK: fix bug where padding of binary columns was being done incorrectly #6963
- Pad non-fractional part of DECIMAL type #6967
- Bug fix regression in /healthz #7090
- Fix metadata related operation hangs when zk down #7228
- Fix accidentally-broken legacy vtctl output format #7285
- Healthcheck: use isIncluded correctly to fix replica/rdonly routing bug #6904
Functionality Added or Changed
VTGate / MySQL compatibility
- VTGate: Allow INSERT with all defaults #6969
- VTGate: Allow YEAR column type with length specified #6975
- VTGate: Retry Execute when reserved connection is lost #6983
- VTGate: Use ephemeral buffer when reading rows #6990
- VTGate: Allow time_zone in reserved connection #6998
- VTGate: Improved support for UNION #7007
- VTGate: Add DDL parser support for FULLTEXT indexes. #7001
- VTGate: Extend comparability of EvalResult to support hash codes #7016
- VTGate: Use proto equal method #7017
- VTGate: Fix COM_STMT_EXECUTE packet decode #7020
- VTGate: Adds Planning and Parsing Support for Create Index of MySQL 5.7 #7024
- VTGate: UNION DISTINCT support on vtgate #7029
- VTGate: Improve database ddl plan #7034
- VTGate: Support for hex & shard in vindex query #7044
- VTGate: Use distinct primitive to solve more queries #7047
- VTGate: Route using vindex for composite IN clause #7049
- VTGate: Optimise struct field layout #7052
- VTGate: Refactoring of plan building #7054
- VTGate: Rewrite joins written with the USING construct #6660
- VTGate: Add option to GetSchema to only send the row count and data length over the wire
#6985 - VTGate: Adds Planning and Parsing Support for Create Database of MySQL 5.7 #7068
- VTGate: Make sure to check all GROUP BY columns #7080
- VTGate: Separate sub-query and derived table into different structs #7081
- VTGate: Adds Planning and Parsing Support for Alter Database of MySQL 5.7 #7086
- VTGate: Convert usages of DDL struct to DDLStatement interface #7096
- VTGate: Adds Planning and Parsing Support for Drop Database of MySQL 5.7 #7098
- VTGate: Restore SHOW SCHEMAS support; fixes #7100 #7102
- VTGate: Refactor Code to create a separate struct for CREATE TABLE #7116
- VTGate: Allows for vttestserver and vtcombo to respond to VtGateExecute. #7121
- VTGate: Support for lock and unlock tables #7139
- VTGate: Merge SelectDBA routes when possible #7140
- VTGate: Adds support for all the rails queries using information_schema #7143
- VTGate: Add support for unary expression in order by column #7163
- VTGate: Skip query rewriting for dual table #7164
- VTGate: Refactor Code to create a separate struct for ALTER VSCHEMA #7173
- VTGate: Refactor Show plans #7185
- VTGate: Show privilege support #7194
- VTGate: Planning and Parsing Support for Drop Table, Drop View and Alter View #7178
- VTGate: Cache only dml and select plans #7196
- VTGate: Planning and Parsing Support for Alter Table #7199
- VTGate: Add FindAllShardsInKeyspace to vtctldserver #7201
- VTGate: Initial implementation of vtctld service #7128
- VTGate: improve-log: FAILED_PRECONDITION #7215
- VTGate: Default to false for system settings to be changed per session at the database connection level #7299
- VTGate: Route INFORMATION_SCHEMA queries #6932
- VTGate: Adds Planning and Parsing Support for Create Index of MySQL 5.7 #7024
- VTGate: Log sql which exceeds max memory rows #7055
- VTGate: Enable Client Session Tracking feature in mysql protocol #6783
- VTGate: Show columns from table_name targeted like select queries #6825
- VTGate: This PR adds logic to simplify subquery expressions that are simple to
- VTGate: Adding MySQL Check Constraints #6865
- VTGate: Manage read your own writes system settings #6871
- VTGate: Allow table_schema comparisons #6887
- VTGate: Additional options support for SELECT INTO and LOAD DATA #6872
- VTGate: Fixes vtgate which throws an error in case of empty statements #6947
- VTGate: [Forward Port] #6940 - Fix error handling in olap mode #6949
- VTGate: Adds Planning and Parsing Support for Create View of MySQL 5.7 #7060
- VTGate: fix error: cannot run Select on table "dual" #7118
- VTGate: Allow system table to be set as default database #7150
- VTGate: Move auto_increment from reserved to non reserved keyword #7162
- VTGate: Add only expr of aliasedExpr to weightstring function #7165
- VTGate: [9.0] don't try to compare varchars in vtgate #7271
- VTGate: Load Data From S3 #6823
- VTGate: Unnest simple subqueries #6831
- VTGate: Adding MySQL Check Constraints #6869
- VTExplain: Add sequence table support for vtexplain #7186
- VSchema: Support back-quoted names #7073
- Healthcheck: healthy list should be recomputed when a tablet is removed #7176
- Healthcheck: Hellcatlk wants to merge 1 commit into master from master #6953
Set Statement Support
Set statement support has been added in Vitess. There are some system variables which are disabled by default and can be enabled using flag -enable_system_settings
on VTGate. These system variables are set on the mysql server. Because they change the mysql session, using them leads to the Vitess connection no longer using the connection pool and forcing dedicated connections.
VReplication
- VReplication: refactored and enhanced support for JSON columns #6829
- VReplication: Don't update tx timestamp on heartbeat #6930
- VReplication E2E Tests: Refactored tests for readability and attempting to fix flakiness #6991
- VRepl/Tablet Picker: improve observability of selected tablet #6999
- VReplication: Handle comment statement type in vstreamer #7092
- VReplication e2e: Fine tuned test to reduce flakiness and added more logging to debug future flakiness #7138
- VReplication: Make relay log size & rows configurable. #6992
- VReplication: New workflows cli UX. Allow reads/writes to be switched independently #7071
- VReplication: DropSources: change table rename logic #7230
- VReplication: MoveTables: delete routing rules and update vschema on Complete and Abort #7234
- VReplication: V2 Workflow Start: wait for streams to start and report errors if any while starting a workflow #7248
- VReplication: Ignore temp tables created by onlineddl #7159
- VReplication: Set time zone to UTC while streaming rows #6845
- VReplication: Materialization and character sets: Add test to verify/demo a workaround for charset issues while using string functions in filters #6847
- VReplication: Tool to diagnose vreplication issues in production #6892
- VReplication: Allow multiple blacklists for master #6816
- VStreamer Field Event: add allowed values for set/enum #6981
- VDiff: lock keyspace while snapshoting, restart target in case of errors #7012
- VDiff: make enums comparable #6880
- VDiff: add ability to limit number of rows to compare #6890
- VDiff/Tablet Picker: fix issue where vdiff sleeps occasionally for tablet picker retry interval #6944
- [vtctld]: fix error state in Workflow Show #6970
- [vtctld] Workflow command: minor fixes #7008
- MoveTables: validate that source tables exist, move all tables #7018
- SwitchWrites bug: reverse replication workflows can have wrong start positions #7169
VTTablet
- VTTablet: fast and reliable state transitions #7011
- VTTablet: don't shutdown on too many connections #7039
- VTTablet: debug/env page to change variables in real-time #7189
- VTTablet: Adds better errors when there are timeouts in resource pools #7002
- VTTablet: Return to re-using server IDs for binlog connections #6941
- VTTablet: Correctly initialize the TabletType stats #6989
- Backup: Use pargzip instead of pgzip for compression. #7037
- Backup: Add s3 server-side encryption and decryption with customer provided key #7088
OnlineDDL
- Online DDL: follow ups in multiple trajectories #6901
- Online DDL: cancel running migrations executed by another tablet #7006
- OnlineDDL: Adding
ddl_strategy
session variable #7042 - Online DDL: ddl_strategy session variable and vtctl command line argument #7045
- Online DDL: Removing online ddl query hint from ALTER TABLE #7069
- Online DDL: vtgate -ddl-strategy flag renamed to -ddl_strategy #7074
Automatically retry migration that was interrupted during master failover
Automatically terminate migrations run by a failed tablet - Online DDL:request_context/migration_context #7082
- Online DDL: Support CREATE, DROP statements in ApplySchema and online DDL #7083
- Online DDL: ddl_type column #7097
- OnlineDDL: "cancel-all" command to cancel all pending migrations in keyspace #7099
- OnlineDDL: Support...
Vitess 9.0.0-rc1
This release complies with VEP-3 which removes the upgrade order requirement. Components can be upgraded in any order. It is recommended that the upgrade order should still be followed if possible, except to canary test the new version of VTGate before upgrading the rest of the components.
Incompatible Changes
The following PRs made changes to behaviors that clients might rely on. They should be reviewed carefully so that client code can be changed in concert with a Vitess release deployment.
- The update to golang 1.15 might break systems that use TLS certificates with a common name. A fix is documented here (golang/go#40748 (comment))
Bugs Fixed
- Set Global #6957
- Binary PK: fix bug where padding of binary columns was being done incorrectly #6963
- Set udv allow more expressions #6964
- Pad non-fractional part of DECIMAL type #6967
- Bug which caused the connection to not close in case of error writing an error packet #6976
- Bug which caused the connection to not close in case of error writing an error packet #6977
- Bug fix #7048 for SelectNone in StreamExecute route engine #7050
- Bug fix regression in /healthz #7090
- Fix metadata related operation hang when zk down #7228
Functionality Added or Changed
- Vtctld: fix error state in Workflow Show #6970
- Adds better error when there are timeouts in resource pools #7002
- Backup: Use pargzip instead of pgzip for compression. #7037
- Vschema: Support back-quoted names #7073
- IsInternalOperationTableName: see if a table is used internally by vitess #7104
- Log sql which exceeds max memory rows #7055
- Add sequence table support for vtexplain #7186
- Vtctld: vtctldclient generator #7238
VTGate / MySQL compatibility
- VTGate: Allow INSERT with all defaults #6969
- VTGate: Allow YEAR column type with length specified #6975
- VTGate: Retry Execute when reserved connection is lost #6983
- VTGate: Use ephemeral buffer when reading rows #6990
- VTGate: Allow time_zone in reserved connection #6998
- VTGate: Improved support for UNION #7007
- VTGate: Add DDL parser support for FULLTEXT indexes. #7001
- VTGate: Extend comparability of EvalResult to support hash codes #7016
- VTGate: Use proto equal method #7017
- VTGate: Fix COM_STMT_EXECUTE packet decode #7020
- VTGate: Adds Planning and Parsing Support for Create Index of MySQL 5.7 #7024
- VTGate: UNION DISTINCT support on vtgate #7029
- VTGate: Improve database ddl plan #7034
- VTGate: Support for hex & shard in vindex query #7044
- VTGate: Use distinct primitive to solve more queries #7047
- VTGate: Route using vindex for composite IN clause #7049
- VTGate: Optimise struct field layout #7052
- VTGate: Refactoring of plan building #7054
- VTGate: Rewrite joins written with the USING construct #6660
- VTGate: Add option to GetSchema to only send the row count and data length over the wire #6985
- VTGate: Adds Planning and Parsing Support for Create Database of MySQL 5.7 #7068
- VTGate: Make sure to check all GROUP BY columns #7080
- VTGate: Separate sub-query and derived table into different structs #7081
- VTGate: Adds Planning and Parsing Support for Alter Database of MySQL 5.7 #7086
- VTGate: Convert usages of DDL struct to DDLStatement interface #7096
- VTGate: Adds Planning and Parsing Support for Drop Database of MySQL 5.7 #7098
- VTGate: Restore SHOW SCHEMAS support; fixes #7100 #7102
- VTGate: Refactor Code to create a separate struct for CREATE TABLE #7116
- VTGate: Allows for vttestserver and vtcombo to respond to VtGateExecute. #7121
- VTGate: Support for lock and unlock tables #7139
- VTGate: Merge SelectDBA routes when possible #7140
- VTGate: Adds support for all the rails queries using information_schema #7143
- VTGate: Add support for unary expression in order by column #7163
- VTGate: Skip query rewriting for dual table #7164
- VTGate: Refactor Code to create a separate struct for ALTER VSCHEMA #7173
- VTGate: Refactor Show plans #7185
- VTGate: Show privilege support #7194
- VTGate: Planning and Parsing Support for Drop Table, Drop View and Alter View #7178
- VTGate: Cache only dml and select plans #7196
- VTGate: Planning and Parsing Support for Alter Table #7199
- VTGate: Add FindAllShardsInKeyspace to vtctldserver #7201
- VTGate: improve-log: FAILED_PRECONDITION #7215
VReplication
- VReplication: refactored and enhanced support for JSON columns #6829
- VReplication: Don't update tx timestamp on heartbeat #6930
- VReplication E2E Tests: Refactored tests for readability and attempting to fix flakiness #6991
- VRepl/Tablet Picker: improve observability of selected tablet #6999
- VReplication: Handle comment statement type in vstreamer #7092
- VReplication e2e: Fine tuned test to reduce flakiness and added more logging to debug future flakiness #7138
- VReplication: Make relay log size & rows configurable. #6992
- VReplication: New workflows cli UX. Allow reads/writes to be switched independently #7071
- VReplication: DropSources: change table rename logic #7230
- VReplication: MoveTables: delete routing rules and update vschema on Complete and Abort #7234
- VReplication: V2 Workflow Start: wait for streams to start and report errors if any while starting a workflow #7248
VTtablet
- VTtablet: ignore errors if extracted gh-ost binary is identical to installed binary #6928
- VTtablet: fast and reliable state transitions #7011
- VTtablet: don't shutdown on too many connections #7039
- VTtablet: debug/env page to change variables in real-time #7189
VStreamer
- VStreamer Field Event: add allowed values for set/enum #6981
VDiff
- VDiff: lock keyspace while snapshoting, restart target in case of errors #7012
OnlineDDL
- Online DDL: follow ups in multiple trajectories #6901
- Online DDL: cancel running migrations executed by another tablet #7006
- OnlineDDL: Adding
ddl_strategy
session variable #7042 - Online DDL: ddl_strategy session variable and vtctl command line argument #7045
- Online DDL: Removing online ddl query hint from ALTER TABLE #7069
- Online DDL: vtgate -ddl-strategy flag renamed to -ddl_strategy #7074
Automatically retry migration that was interrupted during master failover
Automatically terminate migrations run by a failed tablet - Online DDL:request_context/migration_context #7082
- Online DDL: Support CREATE, DROP statements in ApplySchema and online DDL #7083
- Online DDL: ddl_type column #7097
- OnlineDDL: "cancel-all" command to cancel all pending migrations in keyspace #7099
- OnlineDDL: Support
vtctl OnlineDDL <keyspace> show <context>
#7145 - OnlineDDL: Normalizing Online-DDL queries #7153
- Online DDL: ddl_strategy=direct #7172
- Online DDL: Executor database pool size increase #7206
- Online DDL: DROP TABLE translated to RENAME TABLE statement #7221
- Online DDL: Adding @@session_uuid to vtgate; used as 'context' #7263
VTadmin
- VTadmin: Initial vtadmin-api, clusters, and service discovery #7187
- VTadmin: The tiniest possible first implementation of vtadmin-web #7218
- VTadmin: Add cluster protos to discovery and vtsql package constructors #7224
- VTadmin: Add static file service discovery implementation #7229
- VTadmin: Query vtadmin-api from vtadmin-web with fetch + react-query #7239
Other
- Route INFORMATION_SCHEMA queries #6932
- Return to re-using server IDs for binlog connections #6941
- Fix comment typo #6974
- Correctly initialize the TabletType stats #6989
- Clean up plan building test cases #7057
- Add s3 server-side encryption and decryption with customer provided key #7088
- Fix all occurrences of
fmt.Sprint(x)
where x isint
#7244 - local docker: copy examples/common into /vt/common to match MoveTables user guide #7252
- Fix incorrect comments #7257
Examples / Tutorials
Documentation
- Vitess Slack Guidelines v1.0 #6961
- Update docker-compose examples to take advantage of improvements in Vitess #7009
- Adds Planning and Parsing Support for Create Index of MySQL 5.7 #7024
- Do vschema_customer_sharded.json before create_customer_sharded.sql #7210
- Fix comment for IDPool #7212
- Added readme for the demo example #7226
Build Environment Changes
- Fix unit test error #6953, #6993
- Fixing the 5.6 builds of vitess/lite #6960
- Set udv allow more expressions #6964
- Pin mariadb to use mariadb-server-10.2 #6966
- Replace vitess:base with vitess:lite images for docker-compose services #7004
- Fix flakey TestParallelRunnerApprovalFirstRunningSecondRunning test #7014
- Allow custom image tags in compose #7043
- Support statsd for vitess #7072
- Add vtctl to make install-local #7125
- Updating Java unit tests for JDK9+ compatibility #7144
- Add Go Version to Bootstrap Image #7182
- Update Vitess v8.0 images #7174
- Fix broken package ref in UBI docker build #7183
- Convert CentOS extra packages installation to yum instead of downloading #7188
- Make docker_local: fix missing mysql_server package #7213
- Add unit test case to improve test coverage for go/sqltypes/result.go #7227
- Use
context
from Go's standard library #7235 - Update Golang to 1.15 #7204
- Add linter configuration #7247
Functionality Neutral Changes
- Healthcheck: add unit test for multi-cell replica configurations #6978
- Healthcheck: healthy list should be recomputed when a tablet is removed #7176
- Vtctld Workflow command: minor fixes #7008
- Adds timeout to checking for tablets. #7106
- Remove deprecated vtctl commands, flags and vttablet rpcs #7115
- Fixes comment to mention the existence of reference tables. #7122
- Updated pull request template to add more clarity #7193
- Redact password #7198
- action_repository: no need for http.Request #7124
- Table lifecycle: skip time hint for unspecified states #7151