-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backwards compatible replication status to state transition (#10167)
* This effectively reverts 65226ad It was NOT backwards compatible. Signed-off-by: Matt Lord <mattalord@gmail.com> * This adds the new state fields back so that we can switch to them in v15 Signed-off-by: Matt Lord <mattalord@gmail.com> * Allow for safe/smooth upgrades within 14.0-SNAPSHOT We are only appending the last io_thread_connecting field Signed-off-by: Matt Lord <mattalord@gmail.com> * Avoid intermediate io_thread_connecting protobuf field Signed-off-by: Matt Lord <mattalord@gmail.com> * Continue using replication states in v14 tests Signed-off-by: Matt Lord <mattalord@gmail.com> * Translate SQL running status to state as well Signed-off-by: Matt Lord <mattalord@gmail.com> * Use backward compat ReplicaWasRunning check Signed-off-by: Matt Lord <mattalord@gmail.com> * Add backward compat SQLThreadWasRunning function Signed-off-by: Matt Lord <mattalord@gmail.com> * Add comment about when backward compat can be removed Signed-off-by: Matt Lord <mattalord@gmail.com> * Support older clients with new tablets Signed-off-by: Matt Lord <mattalord@gmail.com> * feat: remove SQLThreadWasRunning unused function Signed-off-by: Manan Gupta <manan@planetscale.com> * test: add an upgrade test to verify the replicationstatus is backward compatible Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: fix ReplicaWasRunning so that it doesn't have code dependent on the upgrade Signed-off-by: Manan Gupta <manan@planetscale.com> * refactor: rename function to reflect the output type Signed-off-by: Manan Gupta <manan@planetscale.com> Co-authored-by: Manan Gupta <manan@planetscale.com>
- Loading branch information
1 parent
8a5950d
commit fbf574c
Showing
10 changed files
with
449 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.