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.
spanconfig/{watcher,translator}: add testing knobs
We introduce two testing knobs that we'll use in future commits: - SQLWatcherCheckpointNoopsEveryDurationOverride, if set, will override how often the SQLWatcher checkpoints no-ops (follow up to cockroachdb#73171) - ExcludeDroppedDescriptorsFromLookup will control whether the SQLTranslator ignores dropped descriptors. We'll also use this knob for the Reconciler (cockroachdb#71994), for the same purpose. Ignoring dropped descriptors in tests is a convenient (and faster!) alternative to waiting for the descriptor to actually get GC-ed by the GC job. It also makes it easier to order events transactionally -- it's sufficient for a checkpoint to cross the timestamp when the table is dropped, instead of waiting for the GC job to pick it up post TTL. This latter form is used in our current sqltranslator tests where we sleep arbitrarily: # Sleep for 5 seconds, which is more than the TTL on db.t1, so that # the gc job can delete the descriptor. sleep duration=5 This is unfortunate and makes for slower tests than necessary. We can get rid of it in a subsequent commit. Release note: None
- Loading branch information
1 parent
eea11ee
commit 2a67e8f
Showing
8 changed files
with
62 additions
and
36 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