Skip to content

Commit 0f00894

Browse files
committed
TEST_backfill_grow fails after finding "num_bytes mismatch" in osd log
Need to ignore "num_bytes mismatch" messages during throw backfill/recovery progress. Fixes: https://tracker.ceph.com/issues/68585 Signed-off-by: Mohit Agrawal <[email protected]>
1 parent 20af41d commit 0f00894

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

qa/standalone/osd-backfill/osd-backfill-space.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,16 @@ function TEST_backfill_grow() {
609609

610610
wait_for_clean || return 1
611611

612+
#Capture the timestamp after complete cleanup or finish the recovery progress
613+
current_timestamp=$(date +"%Y-%m-%dT%H:%M:%S")
614+
612615
delete_pool $poolname
613616
kill_daemons $dir || return 1
614-
! grep -q "num_bytes mismatch" $dir/osd.*.log || return 1
617+
618+
#Ignore the num_bytes mismatch messages before calling wait_cleanup
619+
if ! awk -v ts="$current_timestamp" '$0 >= ts && /num_bytes mismatch/' $dir/osd.*.log > /dev/null; then
620+
return 1
621+
fi
615622
}
616623

617624
# Create a 5 shard EC pool on 6 OSD cluster

0 commit comments

Comments
 (0)