-
Notifications
You must be signed in to change notification settings - Fork 466
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
Change all references in user-facing error messages to point to discussions instead of issues #29611
base: main
Are you sure you want to change the base?
Conversation
…ssions instead of issues, or remove the issue reference if it wasn't useful anymore
aad66ff
to
1364077
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.
Thank you!
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.
LGTM
Co-authored-by: Joseph Koshakow <[email protected]>
@@ -736,7 +736,9 @@ message ProtoDomainLimit { | |||
message ProtoEvalError { | |||
message ProtoUnsupported { | |||
string feature = 1; | |||
optional uint64 issue_no = 2; |
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.
We need to be careful with this change as it can prevent data from being compacted in persist. We should determine if we have any of these errors durably recorded in persist before merging the change.
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.
These are not used in the catalog persist shard. Would they be used anywhere else?
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.
We do write the error message text to mz_internal.mz_statement_execution_history
(the activity log) in some cases. Would this change make it so the index on the activity log wouldn't compact properly?
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 think we can write the error proto itself to any persist shard, but I'm not exactly sure about this variant. Someone who knows more would need to check.
The issue is that once we fix the error, we'd generate a retraction, but that retraction would not match any durable error, so both the insert and retraction would stay around forever. The same problem happens for the in-memory representation I think and can cause problems at runtime.
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.
In this case, changing the name of the field won't change its on-disk encoding, so we can do that to get around the problem. @chaas can you remove the reserved 2
and bumping the field number, and just do a rename of the existing field with ID 2?
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 think I successfully confused myself! For the in-memory representation, it shouldn't cause problems because the persist sink self-corrects the contents of a materialized view. Only the persist compaction might leave things around that are semantically equivalent but have a different bit pattern. So, retracting my request changes!
In some cases, I first added a new discussion item to track the feature request and then updated the error message to reference the discussion item.
In other cases, I removed the issue reference if it wasn't useful anymore or something that users are likely to ask for.
Motivation
Checklist
$T ⇔ Proto$T
mapping (possibly in a backwards-incompatible way), then it is tagged with aT-proto
label.