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

*:upgrade vendored pgconn to v1.8.0 #59408

Merged
merged 1 commit into from
Jan 27, 2021
Merged

Conversation

gaoxk
Copy link
Contributor

@gaoxk gaoxk commented Jan 25, 2021

The old version of pgconn asynchronously cancelled requests to the server. However, .connect synchronously closes connections in responses to errors. This causes race conditions for goroutine leaks.
The newer pgconn synchronously closes connections to the server, ideally eliminating this race condition. See jackc/pgconn@340bfec

Release note (general change): Upgrade to v1.8.0 pgconn to patch potential race condition errors.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@gaoxk gaoxk marked this pull request as draft January 25, 2021 22:08
@gaoxk gaoxk force-pushed the upgrade-pgconn branch 2 times, most recently from c2ef24e to 422879b Compare January 25, 2021 22:41
Copy link
Collaborator

@jbowens jbowens left a comment

Choose a reason for hiding this comment

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

:lgtm:

Thanks for upgrading this! Looks like we'll need to update pkg/sql/pgwire/testdata/pgtest/notice to include the "SeverityUnlocalized" field that was added to pgproto3.NoticeResponse.

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

@gaoxk gaoxk force-pushed the upgrade-pgconn branch 2 times, most recently from a3b21a3 to 4356769 Compare January 26, 2021 21:40
@jbowens jbowens force-pushed the upgrade-pgconn branch 5 times, most recently from 47c9024 to 41ea997 Compare January 27, 2021 17:54
@gaoxk gaoxk marked this pull request as ready for review January 27, 2021 19:21
@gaoxk
Copy link
Contributor Author

gaoxk commented Jan 27, 2021

bors r+

@craig
Copy link
Contributor

craig bot commented Jan 27, 2021

Already running a review

@craig
Copy link
Contributor

craig bot commented Jan 27, 2021

Build succeeded:

@craig craig bot merged commit ba82208 into cockroachdb:master Jan 27, 2021
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