-
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: remove SingleDel invariant cluster settings #138541
Conversation
Changes: * [`d21c9e72`](cockroachdb/pebble@d21c9e72) db: add PossibleAPIMisuseEvent * [`e2d1b6cf`](cockroachdb/pebble@e2d1b6cf) cockroachkvs: add FormatKey, ParseFormattedKey Release note: none. Epic: 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.
Thought of another instance where we could use this new misuse API event and filed cockroachdb/pebble#4234
Reviewed 4 of 4 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @sumeerbhola)
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! Good idea!
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @sumeerbhola)
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.
bors r+
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @sumeerbhola)
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 2 of 2 files at r2, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde)
pkg/storage/pebble.go
line 1547 at r2 (raw file):
log.Infof(p.logCtx, "possible ineffectual SingleDel on key %s", roachpb.Key(info.UserKey)) } atomic.AddInt64(&p.singleDelInvariantViolationCount, 1)
shouldn't this increment p.singleDelIneffectualCount
, in that the increments here and below have been swapped.
bors r- |
Also refactor SingleDel invariant callbacks to use the new event. Epic: none Release note: None
17b454e
to
443ecee
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: complete! 1 of 0 LGTMs obtained (waiting on @sumeerbhola)
pkg/storage/pebble.go
line 1547 at r2 (raw file):
Previously, sumeerbhola wrote…
shouldn't this increment
p.singleDelIneffectualCount
, in that the increments here and below have been swapped.
Good catch, fixed. Thanks!!
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 (and 1 stale) (waiting on @jbowens)
bors r+ |
go.mod: bump Pebble to d21c9e72493f
Changes:
d21c9e72
db: add PossibleAPIMisuseEvente2d1b6cf
cockroachkvs: add FormatKey, ParseFormattedKeyRelease note: none.
Epic: none.
storage: remove SingleDel invariant cluster settings
Also refactor SingleDel invariant callbacks to use the new event.
Epic: none
Release note: None