Repository navigation
store/postgres: test that a restart keeps tasks and releases locks - #528
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
@rkb32 the CLA check is failing on your commit. Could you sign the Google CLA at https://cla.developers.google.com/ with the email on your commit? Then it'll go green for review. |
|
I am not truly comprehending the motivation behind this test. I'm approving it because it causes no harm and is easy to remove. |
|
It covers the Redis restart issue (#442) on Postgres: tasks survive a restart, and locks expire. Happy to remove it if you’d rather not keep it. |
Simulate a crash: save a task, take a lock, close the store without unlocking, then reopen on the same database. The task must still be there, and the lock must be takeable once its lease expires.
3bae68e to
3ac5cb5
Compare
|
LGTM |
Opened on behalf of @rkb32 while PR creation is limited to collaborators (#448). The commit is theirs.
Adds a Postgres store test for the restart case from #442: save a task, take a lock, close the store without unlocking, reopen it on the same database, then check the task is still there and the lock can be taken once its lease expires.
Test only.