forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: new schema changer does not deterministically rank nodes
Fixes: cockroachdb#72562, cockroachdb#72561 Previously, when we updated the sorting inside the new schema changer to a rank based approach we incorrectly assumed that DepEdges will always be generated in a deterministic fashion. This does not happen because the database and rule matching is not fully determentistic. Unfortunately, this turned ouut to be false, which can lead to ranks for neighbour edges to be unstable. To address this, this patch iterates over DepEdges in a ordered fashion based on the To nodes, fixing intermittent failures inside the new schema changer tests. Release note: None
- Loading branch information
Showing
8 changed files
with
382 additions
and
132 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
Oops, something went wrong.