-
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
sql: report internal distsql communication error as an internal error #14770
Conversation
cc3c95a
to
176ece9
Compare
176ece9
to
f6c1397
Compare
pkg/sql/schema_changer.go
Outdated
return false | ||
} | ||
|
||
return false |
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 removing this? Otherwise, a single deadline exceeded in a schema change will roll back the whole thing.
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.
The original code was returning false (not rolling back a schema change) only for an internal error with message deadline exceeded. The new code now doesn't rollback a schema change for any internal error.
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.
Ooh, okay. That seems dangerous too. Aren't there lots of internal errors that will never resolve themselves? That's why we have rollbacks.
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.
Good point. I hadn't seen the proliferation of internal error codes for bad sql type errors. I've reverted the change to catch this more precisely. Hate the need to look at messages!
related to cockroachdb#31645 Release note: None
f6c1397
to
dc682fd
Compare
sql: report internal distsql communication error as an internal error
related to #31645
Release note: None