Skip to content
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: retry schema change on a communication error #28769

Merged
merged 1 commit into from
Aug 21, 2018

Conversation

vivekmenezes
Copy link
Contributor

@vivekmenezes vivekmenezes commented Aug 17, 2018

return pgerror.CodeConnectionFailureError from distsql
when it sees a communication error.

related to #27958

Release note: None

@vivekmenezes vivekmenezes requested review from jordanlewis and a team August 17, 2018 16:16
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nervous about this... there are many, many internal errors that get returned by the system. I doubt that all of them are retriable. Can we go the opposite direction here, and change the DistSQL error being returned to have a retriable error that isn't internal error?

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

return pgerror.CodeConnectionFailureError from distsql
when it sees a communication error.

related to cockroachdb#27958

Release note: None
Copy link
Contributor Author

@vivekmenezes vivekmenezes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed it to return and catch pgerror.CodeConnectionFailureError

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@vivekmenezes vivekmenezes changed the title sql: retry schema change on any internal error sql: retry schema change on a communication error Aug 21, 2018
@vivekmenezes
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Aug 21, 2018
28769: sql: retry schema change on a communication error r=vivekmenezes a=vivekmenezes

return pgerror.CodeConnectionFailureError from distsql
when it sees a communication error.

related to #27958

Release note: None

Co-authored-by: Vivek Menezes <vivek@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Aug 21, 2018

Build succeeded

@craig craig bot merged commit b1caf5f into cockroachdb:master Aug 21, 2018
@vivekmenezes vivekmenezes deleted the commerror branch August 22, 2018 01:47
craig bot pushed a commit that referenced this pull request Aug 22, 2018
28953: backport-2.1: sql: retry schema change on a communication error r=vivekmenezes a=vivekmenezes

Backport 1/1 commits from #28769.

/cc @cockroachdb/release

---

return pgerror.CodeConnectionFailureError from distsql
when it sees a communication error.

related to #27958

Release note: None


Co-authored-by: Vivek Menezes <vivek@cockroachlabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants