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

Should retry write for EINTR #16

Open
j16sdiz opened this issue Mar 16, 2016 · 3 comments
Open

Should retry write for EINTR #16

j16sdiz opened this issue Mar 16, 2016 · 3 comments

Comments

@j16sdiz
Copy link

j16sdiz commented Mar 16, 2016

I have got these error in my postgresql.log:

WARNING:  amqp could not commit tx mode on broker 1, reply_type=2, library_errno=4

errno 4 is "EINTR 4 Interrupted system call"

@keithf4
Copy link
Contributor

keithf4 commented Mar 16, 2016

In all honesty, I'm pretty new at coding in C. Your patch to add more info to the warning messages seemed to work ok for me, so I incorporated it into an update. Right now I'm not quite sure how to go about debugging or fixing your issue.

@j16sdiz
Copy link
Author

j16sdiz commented Mar 16, 2016

The code in PR #17 should work when standalone. But I have no idea how this interacts with postgres' signal handling. Might have bad interaction with pg_cancel_backend and friends -- i am just not sure.

If this don't work, we need a backend process to handle that reliably..

@keithf4
Copy link
Contributor

keithf4 commented Mar 30, 2016

This should be fixed with the new librabbitmq library in the 0.5.0_dev branch. Please test.

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

No branches or pull requests

2 participants