v17.0.6
版本发布时间: 2024-03-14 22:10:47
vitessio/vitess最新发布版本:v21.0.0-rc2(2024-10-23 13:13:47)
Release of Vitess v17.0.6
Summary
Table of Contents
Major Changes
Breaking Changes
ExecuteFetchAsDBA rejects multi-statement SQL
vtctldclient ExecuteFetchAsDBA
(and similarly the vtctl
and vtctlclient
commands) now reject multi-statement SQL with error.
For example, vtctldclient ExecuteFetchAsDBA my-tablet "stop replica; change replication source to auto_position=1; start replica
will return an error, without attempting to execute any of these queries.
Previously, ExecuteFetchAsDBA
silently accepted multi statement SQL. It would (attempt to) execute all of them, but:
- It would only indicate error for the first statement. Errors on 2nd, 3rd, ... statements were silently ignored.
- It would not consume the result sets of the 2nd, 3rd, ... statements. It would then return the used connection to the pool in a dirty state. Any further query that happens to take that connection out of the pool could get unexpected results.
- As another side effect, multi-statement schema changes would cause schema to be reloaded with only the first change, leaving the cached schema inconsistent with the underlying database.
ExecuteFetchAsDBA
does allow a specific use case of multi-statement SQL, which is where all statements are in the form of CREATE TABLE
or CREATE VIEW
. This is to support a common pattern of schema initialization.
The entire changelog for this release can be found here.
The release includes 24 merged Pull Requests.
Thanks to all our contributors: @app/vitess-bot, @frouioui, @harshit-gangal, @shlomi-noach, @systay
1、 vitess-17.0.6-3ae5c00.tar.gz 562.38MB
2、 vitess-17.0.6-3ae5c00.x86_64.rpm 560.12MB
3、 vitess_17.0.6-3ae5c00_amd64.deb 562.39MB