-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backupccl: deflake multinode datadriven tests that set cluster settings #92911
Conversation
@@ -87,6 +87,10 @@ type sqlDBKey struct { | |||
} | |||
|
|||
type datadrivenTestState struct { | |||
// clusters maps a name to its cluster | |||
clusters map[string]serverutils.TestClusterInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we ought to change the new-server
cmd to new-cluster
, as it's really spinning up a new cluster and pushing all sql cmds to get served by the first server in the test cluster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgtm 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just pushed an extra commit for this.
The `SET CLUSTER SETTING` stmt propogrates the cluster setting to remote nodes asynchronously, but our data driven multinode tests incorrectly assumed that settings were propogated during stmt execution. This patch adds a new 'set-cluster-setting' dd cmd which will propogate the cluster setting to all nodes before the cmd returns. Fixes cockroachdb#92808 Release note: none
Previously, whenever the dd driver worked with a test cluster, it was always called a server instead of a cluster. This is confusing, given all the other ways crdb uses the word "server". To clear the air, this patch replaces all uses of the word "server" with "cluster", where appropriate. Epic: none Release note: None
ebf217c
to
5102486
Compare
TFTR! bors r=adityamaru |
Build succeeded: |
The
SET CLUSTER SETTING
stmt propogrates the cluster setting to remote nodes asynchronously, but our data driven multinode tests incorrectly assumed that settings were propogated during stmt execution. This patch adds a new 'set-cluster-setting' dd cmd which will propogate the cluster setting to all nodes before the cmd returns.Fixes #92808
Release note: none