Skip to content
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

kvnemesis: use ReplicationManual #93973

Open
tbg opened this issue Dec 20, 2022 · 3 comments
Open

kvnemesis: use ReplicationManual #93973

tbg opened this issue Dec 20, 2022 · 3 comments
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-testeng TestEng Team

Comments

@tbg
Copy link
Member

tbg commented Dec 20, 2022

Describe the problem

In #89477, TestKVNemesisMultiNode was (accidentally) switched to use ReplicationAuto instead of ReplicationManual, meaning that the TestCluster will upreplicate and also have the replicate queue active throughout the run.

We should decide whether that's desirable and if not, undo this change.

kvnemesis does perform manual replication changes, so manual seems preferrable to preserve as much determinism as possible.

kvnemesis also performs random zone config changes, which I thought was an argument for keeping the replicate queue active, but it turns out that at the time of writing, the only zone cfg change it can make is toggling global reads, which is independent of the replicate queue being active:

func changeZone(changeType ChangeZoneType) Operation {
return Operation{ChangeZone: &ChangeZoneOperation{Type: changeType}}
}

Jira issue: CRDB-22630

@tbg tbg added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-testeng TestEng Team labels Dec 20, 2022
@blathers-crl
Copy link

blathers-crl bot commented Dec 20, 2022

cc @cockroachdb/test-eng

@tbg
Copy link
Member Author

tbg commented Dec 20, 2022

@srosenberg you mentioned you'd send a PR with small fixes to kvnemesis anyway, mind rolling this into that? You just need to add the ReplicationMode back in here:

ServerArgs: base.TestServerArgs{

@srosenberg
Copy link
Member

you mentioned you'd send a PR with small fixes to kvnemesis anyway, mind rolling this into that?

Sure thing, thanks for creating the issue. I have a few small fixes (mostly typos in comments), but I plan to go through the code in more depth over the next few days. I'll send a PR with whatever else I find plus ReplicationManual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-testeng TestEng Team
Projects
None yet
Development

No branches or pull requests

2 participants