Page MenuHomeSoftware Heritage

core/loader: Retry contents loading on HashCollision errors

Authored by anlambert on Oct 1 2019, 10:55 AM.



Here is a simple workaround to avoid HashCollision errors thay may appear when different workers are loading
the exact same content in parallel database transactions.

This clearly does not fix the storage issue but at least it should greatly reduce the amount of HashCollision
errors reported by the vcs loaders in production.

Related T2019

Diff Detail

rDLDBASE Generic VCS/Package Loader
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

anlambert created this revision.Oct 1 2019, 10:55 AM
ardumont accepted this revision.Oct 1 2019, 10:57 AM
This revision is now accepted and ready to land.Oct 1 2019, 10:57 AM