]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: rgw-orphan-list can continue with empty intermediate file(s) 66938/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Thu, 15 Jan 2026 20:32:32 +0000 (15:32 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 15 Jan 2026 20:32:32 +0000 (15:32 -0500)
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 <ivancich@redhat.com>
src/rgw/rgw-orphan-list

index 70557947e5df9e48921813727622087127e5d8d5..ec232c54bcef837a6931bc84d592e80c2b7edb30 100755 (executable)
@@ -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