-
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
cli: improve send-kv-batch
help text and examples
#73602
Conversation
fcf4f7b
to
5a893cf
Compare
Release note: None
5a893cf
to
f33ce92
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.
💯
Help is really useful, will save a bit of time when there's an urgent need!
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 have a follow-up PR on top of this commit, I'll send it when this is in.
Reviewable status:
complete! 1 of 0 LGTMs obtained (waiting on @erikgrinaker)
TFTRs! bors r=aliher1911,tbg |
Build succeeded: |
CRDB 21.2 already populates `Errors.EncodedError`, so we can remove the deprecated fields. I was motivated by this when working on a follow-up to cockroachdb#73602 and ended up trying to marshal an `Error` to JSON, which panics since it ends up trying to use `reflect` to get an unexported value (due to the `customname` tags on the deprecated fields). This behavior persists even with the `json: "-"` tag, by the way, indicating that we should never use `(gogoproto.customname)` to make a field private. It's also just one more papercut that comes with using `gogoproto` but that's a much bigger fish to fry. Release note: None
CRDB 21.2 already populates `Errors.EncodedError`, so we can remove the deprecated fields. I was motivated by this when working on a follow-up to cockroachdb#73602 and ended up trying to marshal an `Error` to JSON, which panics since it ends up trying to use `reflect` to get an unexported value (due to the `customname` tags on the deprecated fields). This behavior persists even with the `json: "-"` tag, by the way, indicating that we should never use `(gogoproto.customname)` to make a field private. It's also just one more papercut that comes with using `gogoproto` but that's a much bigger fish to fry. Release note: None
CRDB 21.2 already populates `Errors.EncodedError`, so we can remove the deprecated fields. I was motivated by this when working on a follow-up to cockroachdb#73602 and ended up trying to marshal an `Error` to JSON, which panics since it ends up trying to use `reflect` to get an unexported value (due to the `customname` tags on the deprecated fields). This behavior persists even with the `json: "-"` tag, by the way, indicating that we should never use `(gogoproto.customname)` to make a field private. It's also just one more papercut that comes with using `gogoproto` but that's a much bigger fish to fry. Release note: None
Release note: None