HomeSoftware Heritage

postgresql archive: add support for partially copied databases

Description

postgresql archive: add support for partially copied databases

The incremental copy of the archive to mmca is not atomic: the directory
table needs to be copied first, then the directory_entry_* tables need
to be updated. This means that the client can view inconsistent entries,
where the directory has been synced but not all the entry rows.

We return an empty list when one of these bogus entries is detected.
This allows smooth fallback to the main database through the
multiplexer.

Details

Provenance
olasdAuthored on Aug 12 2022, 5:34 PM
olasdPushed on Aug 16 2022, 12:35 PM
Differential Revision
D8243: All the current swh.provenance changes that are running in production...
Parents
rDPROV95eb9622a00c: postgresql archive: don't use custom types
Branches
Unknown
Tags
Unknown
Build Status
Buildable 30793
Build 48149: test-and-buildJenkins console · Jenkins