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

Avoid reporting ProtocolSyncError when admin session disconnects #160

Merged
merged 3 commits into from
Sep 7, 2022

Conversation

drdrsh
Copy link
Collaborator

@drdrsh drdrsh commented Sep 7, 2022

We report ProtocolSyncError if we hit the admin handler codepath with any message other than Q. When we moved the X packet handling to happen with the extended protocol packets, we introduced a bug where we will report ProtocolSyncError every time admin client disconnects.

Screen Shot 2022-09-06 at 10 16 49 PM

This PR fixes this

@levkk
Copy link
Contributor

levkk commented Sep 7, 2022

Nice! CI error looks like a flake.

@levkk levkk merged commit a5c8dd6 into postgresml:main Sep 7, 2022
jmeagher pushed a commit to jmeagher/pgcat that referenced this pull request Feb 17, 2023
Avoid reporting ProtocolSyncError when admin session disconnects (postgresml#160)
Better logging for failure to get connection from pool (postgresml#161)
Send signal even if process is gone (postgresml#162)
Clean connection state up after protocol named prepared statement (postgresml#163)
Add Discord link (postgresml#164)
Add SHOW CLIENTS / SHOW SERVERS + Stats refactor and tests (postgresml#159)
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.

2 participants