From 548146e3f8dc4aef0431fed5cceee6b24de23ff1 Mon Sep 17 00:00:00 2001 From: "J. Eric Ivancich" Date: Thu, 15 Jan 2026 15:32:32 -0500 Subject: [PATCH] rgw: rgw-orphan-list can continue with empty intermediate file(s) rgw-orphan-list would exit with an error if either of the intermediate files were empty. That's not necessarily indicative of an error, though. If otherwise all the buckets have been removed then the radosgw-admin intermediate file *should* be empty and the tool will still find orphans. When an empty intermediate file is found, this changes the output from error to a warning and will not exit. Signed-off-by: J. Eric Ivancich --- src/rgw/rgw-orphan-list | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw-orphan-list b/src/rgw/rgw-orphan-list index 70557947e5df..ec232c54bcef 100755 --- a/src/rgw/rgw-orphan-list +++ b/src/rgw/rgw-orphan-list @@ -240,9 +240,8 @@ radosgw_radoslist for myfile in $rados_out $rgwadmin_out; do if [ ! -s "${myfile}" ]; then - log "ERROR: Empty file detected: ${myfile}" - log "ERROR: RESULTS ARE INCOMPLETE - DO NOT USE" - exit 1 + log "WARNING: Empty file detected: ${myfile}" + log " RESULTS MAY BE INCOMPLETE, USE WITH CAUTION" fi done -- 2.47.3