-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30636: opt: add testing infrastructure to disable rules r=rytaft a=rytaft This commit adds testing infrastructure for randomly disabling some transformation rules in the optimizer. The goal is to test that alternate plans produced by the optimizer are logically equivalent. It can be used to test that the logic tests still pass with some rules randomly disabled as follows: ``` > make test PKG=./pkg/sql/logictest/... TESTS='TestLogic/local-opt/.*' \ TESTFLAGS='-disable-opt-rule-probability=0.1' ``` This test indicates that each transformation rule may be disabled with 10% probability. The value of -disable-opt-rule-probability can be any value between 0.0 and 1.0. Release note: None 30689: opt: show FKs in ddl output for test catalog r=justinj a=justinj Also remove a TODO fixed by #30072. Release note: None 30716: storage: proactively add to replicate queue on leader acquisition r=petermattis a=petermattis Proactively add replicas to the replicate queue on Raft leader acquisition. This is done in order to speed up removal of a replica when the replica to be removed is the leaseholder. When that happens the leaseholder transfers the lease to another replica and after the lease is transferred Raft leadership is transferred. Prior to this change the system then had to wait for the scanner on the new leaseholder node to pick up the replica and complete the removal. Note that we wait for Raft leadership to transfer because removal of a replica requires the leaseholder to also be the Raft leader due to the checks in `filterUnremovableReplicas` which ensure we're not removing a replica that is critical for quorum. Fixes #30695 Release note: None Co-authored-by: Rebecca Taft <[email protected]> Co-authored-by: Justin Jaffray <[email protected]> Co-authored-by: Peter Mattis <[email protected]>
- Loading branch information
Showing
17 changed files
with
267 additions
and
121 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
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
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.