From b7e878810edc114ebcad24245a36731c1742c3dd Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Mon, 2 Dec 2024 19:59:12 +0100 Subject: [PATCH] backend: add todo about fault-tolerance and data consistency --- backend/run/copr-change-storage | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backend/run/copr-change-storage b/backend/run/copr-change-storage index 21573ddb3..ec9da9504 100755 --- a/backend/run/copr-change-storage +++ b/backend/run/copr-change-storage @@ -127,6 +127,16 @@ def main(): log.info("Skipping: %s", resultdir) continue + # TODO Fault-tolerance and data consistency + # Errors when creating things in Pulp will likely happen + # (networking issues, unforseen Pulp validation, etc). We + # should figure out how to ensure that all RPMs were + # successfully uploaded, and if not, we know about it. + # + # We also need to make sure that no builds, actions, or cron, + # are currently writing into the results directory. Otherwise + # we can end up with incosystent data in Pulp. + full_name = "{0}/{1}".format(owner, subproject) result = storage.init_project(full_name, chroot) if not result: