HomeSoftware Heritage

Fix crash when RawExtrinsicMetadata target new origins

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

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
Build Status
Buildable 31402
Build 49123: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.