From bc21f2ea5bd42e14a524434d220f708e012c4293 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Wed, 6 Aug 2025 14:54:09 +0200 Subject: retry finalize if we get a "needs" on a blob we did not create (#461) --- src/zen/cmds/builds_cmd.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/zen/cmds/builds_cmd.cpp b/src/zen/cmds/builds_cmd.cpp index cd27daa9e..fc3580d75 100644 --- a/src/zen/cmds/builds_cmd.cpp +++ b/src/zen/cmds/builds_cmd.cpp @@ -2904,8 +2904,10 @@ namespace { } else { - throw std::runtime_error( - fmt::format("Can not upload requested build blob {} as it was not generated by this upload", RawHash)); + ZEN_CONSOLE( + "Warning: Build blob {} was reported as needed for upload but it was reported as existing at the start of the " + "operation. Treating it as a transient inconsistent issue and will attempt to retry finalization", + RawHash); } } uint64_t TotalRawSize = TotalLooseChunksSize + TotalBlocksSize; -- cgit v1.2.3