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>
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