You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We added the new vtctldclient implementation of VReplication commands such as MoveTraffic and Reshardin Vitess 18.0. Much of the existing endtoend (e2e) tests at the time continued to use the now legacy vtctlclient client, however.
In moving one of the main VReplication endtoend tests, TestBasicV2Workflows which focuses on Reshard, to use vtctldclient it uncovered bugs related to how switching of traffic for replica and rdonly tablets was done:
Update the TestBasicV2Workflows test to use vtctldclient instead of vtctlclient and run it:
go test -count 1 -v -failfast -timeout 15m -run TestBasicV2Workflows vitess.io/vitess/go/test/endtoend/vreplication
Binary Version
vtgate version Version: 20.0.0-SNAPSHOT (Git revision 308f1fc5f0feac229f817bb30ef3b6fd0fe1fca9 branch 'main') built on Tue Mar 26 13:07:27 EDT 2024 by [email protected] using go1.22.1 darwin/arm64
Operating System and Environment details
N/A
Log Fragments
No response
The text was updated successfully, but these errors were encountered:
Overview of the Issue
We added the new
vtctldclient
implementation of VReplication commands such asMoveTraffic
andReshard
in Vitess 18.0. Much of the existing endtoend (e2e) tests at the time continued to use the now legacyvtctlclient
client, however.In moving one of the main VReplication endtoend tests,
TestBasicV2Workflows
which focuses onReshard
, to usevtctldclient
it uncovered bugs related to how switching of traffic for replica and rdonly tablets was done:--cells
flag value was not getting passed through from client (vtctldclient) to server (vtctld) which is needed when switching reads in a subset of cellsCreate
(used for selecting tablets to participate in the streams) — when it should remain empty (meaning switch reads in all cells)Reshard
workflow specifically, we were were incorrectly managing the direction and its relationship to the source and target — when the source and target, based on the direction, are already setup when building the traffic switcher — and thusSwitchTraffic
/ReverseTraffic
forReshard
did not work correctlyReproduction Steps
Update the
TestBasicV2Workflows
test to usevtctldclient
instead ofvtctlclient
and run it:Binary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: