HomeSoftware Heritage

Fix crash when RawExtrinsicMetadata target new origins

Description

Fix crash when RawExtrinsicMetadata target new origins

RawExtrinsicMetadata contain a swh:1:ori: identifier of the origin,
which the indexer needs to resolve, by querying its storage replica.

Because RawExtrinsicMetadata are created by loaders, they are often
created shortly after the origin is created by the corresponding lister,
so the origin may not be known to the storage replica used by the
indexer, causing this function to crash.

Waiting 10s seems to be good enough when run on my computer with
production data and moma's replica; so I set it to 60s just to be safe.

Details

Provenance
vlorentzAuthored on Sep 5 2022, 3:48 PM
vlorentzPushed on Sep 8 2022, 4:58 PM
Differential Revision
D8392: Fix crash when RawExtrinsicMetadata target new origins
Parents
rDCIDX68940cfccfed: Fix crash when RawExtrinsicMetadata objects have the same target
Branches
Unknown
Tags
Unknown
Build Status
Buildable 31402
Build 49123: test-and-buildJenkins console · Jenkins