Skip to content

cockroachdb: speed up multi-register test and fix split nemesis#20

Merged
nvb merged 2 commits intotc-nightlyfrom
nvanbenschoten/multiRegisterSpeed
Apr 17, 2019
Merged

cockroachdb: speed up multi-register test and fix split nemesis#20
nvb merged 2 commits intotc-nightlyfrom
nvanbenschoten/multiRegisterSpeed

Conversation

@nvb
Copy link
Copy Markdown

@nvb nvb commented Apr 17, 2019

This is needed for cockroachdb/cockroach#36616.

nvb added 2 commits April 17, 2019 14:53
This helps reduce the time of runs to a more reasonable limit.
Since introducing Range merges in CockroachDB v2.1, manual Range splits
have only been allowed if the merge queue is disabled first. This commit
disables the merge queue when the split-nemesis is in use, preventing
errors like the following:
```
INFO [2019-04-17 19:32:45,072] jepsen nemesis - jepsen.util :nemesis	:info	["splits" :split]	nil	indeterminate: ERROR: splits would be immediately discarded by merge queue; disable the merge queue first by running 'SET CLUSTER SETTING kv.range_merge.queue_enabled = false'
```
:client {:client (MultiAtomicClient. (atom false) nil)
:during (independent/concurrent-generator
(count (:nodes opts))
3
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this 3 instead of the size of the cluster like it was before?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reducing the concurrency sped up the test. Setting this to the size of the cluster was somewhat arbitrary. Tests like comments do that but tests like register set it to a constant value.

@nvb nvb merged commit c711afd into tc-nightly Apr 17, 2019
@nvb nvb deleted the nvanbenschoten/multiRegisterSpeed branch April 17, 2019 20:16
aliher1911 pushed a commit to aliher1911/jepsen that referenced this pull request Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants