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

Fix sanity check to use the relevant active connection #12769

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

AlanCoding
Copy link
Member

SUMMARY

This was a bug I introduced and is tracked in #12740

When doing a control-with-reply to determine the status of a job, we should unambiguously use a new connection. There is no question about that, and it was an oversight that I missed this particular import of pg_bus_conn. If we run out of connections, the exception will be caught and cancel_flag should still get flipped, which is what we want.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API
ADDITIONAL INFORMATION

This hopefully replaces #12741, I still need to run tests quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants