From: J. Eric Ivancich Date: Thu, 15 Jan 2026 20:32:32 +0000 (-0500) Subject: rgw: rgw-orphan-list can continue with empty intermediate file(s) X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F66938%2Fhead;p=ceph.git 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 --- 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