Page MenuHomeSoftware Heritage

core/loader: Retry contents loading on HashCollision errors
ClosedPublic

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

Details

Summary

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

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