-
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
storage: Bring back MaxSyncDuration env var, fix disk-stalled roachtest #56064
Conversation
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @itsbilal, @jbowens, and @petermattis)
pkg/cmd/roachtest/disk_stall.go, line 100 at r1 (raw file):
dur := 10 * time.Minute if !affectsDataDir && !affectsLogDir { dur = 65 * time.Second
Did this duration need to change?
The disk-stalled roachtest relies on the ability to control disk stall detection / fatal intervals, as charybdefs only injects 50ms of delay per syscall. This change adds an env variable, similar to the one removed in cockroachdb#55186 to set max sync duration, except now it governs the default of the cluster setting. The roachtest now modifies that env variable to let disk stall detection trip on short syscall delays. Fixes cockroachdb#54332. Release note: None.
e656a64
to
79f1751
Compare
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.
TFTR!
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @jbowens and @petermattis)
pkg/cmd/roachtest/disk_stall.go, line 100 at r1 (raw file):
Previously, petermattis (Peter Mattis) wrote…
Did this duration need to change?
It doesn't. Reverted.
bors r+ |
Build succeeded: |
The COCKROACH_ENGINE_MAX_SYNC_DEFAULT* env variables were overhauled after 20.2. The roachtest was updated in cockroachdb#56064 to use the new env vars that yield to cluster settings. However, that roachtest was also not updated to work correctly with <=20.2 cockroach that still looked for the older env vars, so this change makes that fix. Fixes cockroachdb#56174. Release note: None
The disk-stalled roachtest relies on the ability to control disk stall
detection / fatal intervals, as charybdefs only injects 50ms of
delay per syscall. This change adds an env variable, similar to the
one removed in #55186 to set max sync duration, except now it governs
the default of the cluster setting. The roachtest now modifies that
env variable to let disk stall detection trip on short syscall
delays.
Fixes #54332.
Release note: None.