Page MenuHomeSoftware Heritage

Prevent deadlocks by always updating items in the same order.
ClosedPublic

Authored by vlorentz on Mar 4 2019, 12:49 PM.

Details

Test Plan

The tests are a bit fragile since they are testing a concurrency
issue.
But when running them without the fix, there is almost always
at least one failure on my machine (with pgsql running on a tmpfs).

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Mar 4 2019, 3:10 PM
This revision was automatically updated to reflect the committed changes.