-
Notifications
You must be signed in to change notification settings - Fork 55
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
Minion.unlock() concurrency #90
Comments
Can you replicate the problem without using 3rd party modules? |
I can try if you are really sure that mentioned DELETE command cannot try to delete the same row for concurrent queries. |
Agreed, there should be a |
I forgot to credit you for the patch, sorry about that. 837f916...d82cf78 |
Steps to reproduce the behavior
Run test case https://github.com/andrii-suse/minion/blob/stress_lock/t/pg_minion_lock_stress.t , e.g. :
n=0; while : $((++n)); do echo $n; PERL5LIB=lib perl t/pg_minion_lock_stress.t || break; done
Expected behavior
Consistent results
Actual behavior
Test fails in ~50% cases indicating that Minion locks are not removed properly. (see test.log)
Suspected concurrency problems at
minion/lib/Minion/Backend/Pg.pm
Line 272 in 17868bd
test.log
In contrast to local environment, the test in travis is always failing https://travis-ci.org/andrii-suse/minion/builds/625632738
The text was updated successfully, but these errors were encountered: