-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
kvadmission: remove grunning non-monotonic comment #126424
kvadmission: remove grunning non-monotonic comment #126424
Conversation
This was fixed in cockroachdb#118907. This patch adds an assertion for test builds to ensure monotonic grunning time. Informs cockroachdb#95529 Release note: None
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
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.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @aadityasondhi)
pkg/kv/kvserver/kvadmission/kvadmission.go
line 455 at r1 (raw file):
if ah.callAdmittedWorkDoneOnKVAdmissionQ { cpuTime := grunning.Time() - ah.cpuStart if buildutil.CrdbTestBuild && cpuTime < 0 {
if someone uses an unpatched runtime, will cpuTime
be 0?
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!
bors r=sumeerbhola
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @sumeerbhola)
pkg/kv/kvserver/kvadmission/kvadmission.go
line 455 at r1 (raw file):
Previously, sumeerbhola wrote…
if someone uses an unpatched runtime, will
cpuTime
be 0?
Yes. Both grunning.Time()
and ah.cpuStart
will be 0 in unpatched versions.
ah.cpuStart = grunning.Time()
bors r+ |
This was fixed in #118907.
This patch adds an assertion for test builds to ensure monotonic grunning time.
Informs #95529
Release note: None