This PR introduces a demo script that showcases the new --trace-file flag and the keys commands, adding more versatility in testing Vitess setups. Key additions include:
Demo script: Features a couple of different vschemas to be used together with --trace-file and keys.
New flag: Added --number-of-shards flag to the tester command:
Three new directives:
--vitess_only: Executes commands only on Vitess clusters.
--mysql_only: Executes commands only on MySQL server.
--reference: Executes DML aimed at the reference table, which is copied to all shards.
Refactor:
The code handling these directives has been refactored to improve readability and maintainability, introducing a dedicated state machine to track directive states more explicitly. This change simplifies state transitions when handling multiple directives.
Description:
This PR introduces a demo script that showcases the new
--trace-file
flag and thekeys
commands, adding more versatility in testing Vitess setups. Key additions include:--trace-file
andkeys
.Refactor:
The code handling these directives has been refactored to improve readability and maintainability, introducing a dedicated state machine to track directive states more explicitly. This change simplifies state transitions when handling multiple directives.