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

roachtest: limit payload sizes in backup-restore/mixed-version #120462

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

dt
Copy link
Member

@dt dt commented Mar 14, 2024

Previously it could randomly choose to revise only 100 rows with 16kb payloads in every revision. While this usually works when run on 512mb ranges, it can flake when run on 64mb ranges as that many large revisions exceeds the range's capacity.

Release note: none.
Epic: none.

@dt dt requested a review from msbutler March 14, 2024 04:23
@dt dt requested a review from a team as a code owner March 14, 2024 04:23
@dt dt requested review from herkolategan and renatolabs and removed request for a team March 14, 2024 04:23
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@dt dt linked an issue Mar 14, 2024 that may be closed by this pull request
@dt dt added backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2. labels Mar 14, 2024
if bankRows < 1000 {
possiblePayloads = []int{16, 64}
}
bankPayload := possiblePayloads[testRNG.Intn(len(bankPossiblePayloadBytes))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

len(possiblePayloads)

Previously it could randomly choose to revise only 100 rows with 16kb
payloads in every revision. While this usually works when run on 512mb
ranges, it can flake when run on 64mb ranges as that many large revisions
exceeds the range's capacity.

Release note: none.
Epic: none.
@dt
Copy link
Member Author

dt commented Mar 25, 2024

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Mar 25, 2024

@craig craig bot merged commit 4cc2bbd into cockroachdb:master Mar 25, 2024
21 of 22 checks passed
@dt dt deleted the payloads branch March 25, 2024 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

roachtest: backup-restore/mixed-version failed
4 participants