-
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: verbose logging for conf changes #7527
Conversation
Cannot hurt to have this for cockroachdb#7224.
Reviewed 2 of 2 files at r1. storage/replica.go, line 1858 [r1] (raw file):
s/pErr/rErr/, s/txn/batch/? storage/replica_command.go, line 2755 [r1] (raw file):
if you have to eat another round of CI: log.Fatalf Comments from Reviewable |
return err | ||
} | ||
|
||
if oldDesc.RangeID != 0 && !reflect.DeepEqual(oldDesc, desc) { |
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.
Why are you doing this check here instead of above right after you read oldDesc
?
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.
How slow is reflect.DeepEqual, I've always avoided reflect entirely in the main execution path.
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.
@petermattis Because it's only here that the transaction has committed. Conceivably we might try to change replicas and the CPut would fail because of a race.
@BramGruneir this is pretty far off the hot execution path.
LGTM |
Review status: all files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. storage/replica.go, line 1858 [r1] (raw file):
|
Cannot hurt to have this for #7224. It's a bit noisy during replication, but that is a lesser concern.
This change is