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

cmd/roachtest: tweaks to sstable corruption test #77675

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

nicktrav
Copy link
Collaborator

A few minor changes to the existing roachtest:

Reduce the warehouse count on ingest back to 100 - this should be ample,
and it matches the warehouse count on the read path in a later part of
the test.

Change the stop options to wait until the process has been terminated
before continuing.

Re-work the command to search for SSTables to corrupt - use tables from
the most recent manifest (if multiple are present); consider SSTables
with either a start or end key representing a user table; shuffle tables
to distribute corruption over the LSM; perform filtering in the bash
command rather than in the test runner itself.

Release justification: Roachtest-only change.

Release note: None.

Touches #77321.

A few minor changes to the existing roachtest:

Reduce the warehouse count on ingest back to 100 - this should be ample,
and it matches the warehouse count on the read path in a later part of
the test.

Change the stop options to wait until the process has been terminated
before continuing.

Re-work the command to search for SSTables to corrupt - use tables from
the most recent manifest (if multiple are present); consider SSTables
with either a start or end key representing a user table; shuffle tables
to distribute corruption over the LSM; perform filtering in the bash
command rather than in the test runner itself.

Release justification: Roachtest-only change.

Release note: None.

Touches cockroachdb#77321.
@nicktrav nicktrav requested a review from itsbilal March 11, 2022 14:59
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nicktrav
Copy link
Collaborator Author

nicktrav commented Mar 11, 2022

I also did a stress test of this, and it came back clean. That's not to say this fixes whatever is causing #77321, just that the test still works as expected.

@nicktrav
Copy link
Collaborator Author

I walk back the comment about the stress test not failing. I ran it again and hit what seems to be #77627. That's unrelated to the changes, but thought I'd mention it.

Copy link
Contributor

@itsbilal itsbilal left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @nicktrav)


pkg/cmd/roachtest/tests/sstable_corruption.go, line 56 at r1 (raw file):

	c.Stop(ctx, t.L(), opts, crdbNodes)

	const findTablesCmd = "" +

Nice!

@nicktrav
Copy link
Collaborator Author

TFTR!

bors r=itsbilal

@craig
Copy link
Contributor

craig bot commented Mar 14, 2022

Build succeeded:

@craig craig bot merged commit 51cbdce into cockroachdb:master Mar 14, 2022
@nicktrav nicktrav deleted the nickt.sstable-corruption branch March 14, 2022 18:23
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.

3 participants