Page MenuHomeSoftware Heritage

core/loader: Retry contents loading on HashCollision errors
ClosedPublic

Authored by anlambert on Tue, Oct 1, 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 Loader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

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