-
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
workload/schemachange: correct error code for referencing dropping enum #120865
Conversation
whoops - we let this one fly under the radar for a bit i also found a new trick i could try out here (as opposed to reading code (also - thank you, faizan for the cluster setting pointer)):
in the other session:
|
ah interesting. have you tested with Lines 965 to 966 in 007005f
cockroach/pkg/sql/catalog/descs/getters.go Line 334 in f250900
So since the workload hasn't failed so far with this looking for the wrong error code, i wonder if it's actually fine? |
oh interesting! i just tested with i got:
maybe my triage of this was wrong - let me see |
it might be best to go with your change here, and also adjust the places i linked to to use UndefinedObject. as long as the tests pass! |
This patch changes the error code expected for referencing an enum that's in the process of being dropped to the proper one. In addition, we ensure that we are returning the proper error code whenever we get/lookup type descriptors Epic: none Release note: None
f1beb49
to
3038c13
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.
lgtm!
TFTR! ('-')7 bors r=rafiss |
Build failed (retrying...): |
This PR was included in a batch that was canceled, it will be automatically retried |
This patch changes the error code expected for referencing an enum that's in the process of being dropped to the proper one.
Epic: none
Release note: None