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

release-23.1: sql: add extra information to protocol errors in bind #108453

Closed
wants to merge 2 commits into from

Conversation

cucaroach
Copy link
Contributor

@cucaroach cucaroach commented Aug 9, 2023

This backport is a clean cherry pick of b0ab077 from #103857 and #106130 with a pkgwire --rewrite to pick up some DD test changes.

sql: add extra information to protocol errors in bind

A user is running into mysterious protocol errors when using prepared
statements. Add some extra information to the error message to help
guide the investigation.

Informs: https://github.com/cockroachlabs/support/issues/2184
Release note: none
Epic: none

pgwire: include detail and hint in error tests

Release note: None

Release justification: Low risk change that just adds additional information to error paths seen in support issues.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@cucaroach cucaroach changed the title backport 106130 release-23.1: sql: add extra information to protocol errors in bind Aug 9, 2023
@cucaroach cucaroach marked this pull request as ready for review August 9, 2023 16:07
@cucaroach cucaroach requested review from a team as code owners August 9, 2023 16:07
@cucaroach cucaroach requested review from rafiss and knz August 9, 2023 16:08
knz and others added 2 commits August 9, 2023 17:01
A user is running into mysterious protocol errors when using prepared
statements. Add some extra information to the error message to help
guide the investigation.

Informs: https://github.com/cockroachlabs/support/issues/2184
Release note: none
Epic: none
@yuzefovich
Copy link
Member

Now that we have a repro (in https://github.com/cockroachlabs/support/issues/2510) for the same bug as https://github.com/cockroachlabs/support/issues/2184, is it still worth backporting it?

@cucaroach
Copy link
Contributor Author

Now that we have a repro (in cockroachlabs/support#2510) for the same bug as cockroachlabs/support#2184, is it still worth backporting it?

I don't feel strongly either way, I'll defer to @rafiss

@rafiss
Copy link
Collaborator

rafiss commented Aug 14, 2023

I'm fine to skip the backport. Since we don't have a need for it right now, it doesn't seem worth the general risk of even a light refactor/conflict fix that was needed for the backport.

@cucaroach
Copy link
Contributor Author

Closing based on Rafi's feedback.

@cucaroach cucaroach closed this Sep 6, 2023
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.

6 participants