-
Notifications
You must be signed in to change notification settings - Fork 449
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
metamorphic: limit aggregate injected I/O latency #3742
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.
I'm unclear on how much of a contributor the I/O latency injection is to overall test time, but at least the failure in #3733 had it enabled. When target file sizes are small, or flush-split-bytes is low, or LBaseMaxBytes is low, it seems we can easily generate significant amounts of I/O.
Reviewable status: 0 of 6 files reviewed, all discussions resolved (waiting on @RaduBerinde)
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: 0 of 6 files reviewed, 2 unresolved discussions (waiting on @jbowens)
vfs/errorfs/latency.go
line 61 at r1 (raw file):
mean time.Duration limit time.Duration agg time.Duration
this needs a comment
vfs/errorfs/latency.go
line 88 at r1 (raw file):
}) time.Sleep(dur) rl.agg += dur
This needs to be an atomic or under a mutex, no?
Limit the amount of I/O latency injected into any individual run of the metamorphic test to improve worst-case test runtimes. Informs cockroachdb#3681. Informs cockroachdb#3733.
4381080
to
1635b06
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.
Reviewable status: 0 of 6 files reviewed, 2 unresolved discussions (waiting on @RaduBerinde)
vfs/errorfs/latency.go
line 88 at r1 (raw file):
Previously, RaduBerinde wrote…
This needs to be an atomic or under a mutex, no?
Thanks, I need more sleep
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: 0 of 6 files reviewed, 1 unresolved discussion (waiting on @jbowens)
TFTR! |
Limit the amount of I/O latency injected into any individual run of the metamorphic test to improve worst-case test runtimes.
Informs #3681.
Informs #3733.