Skip to content

Commit 1c37086

Browse files
authored
Merge pull request ceph#60636 from mohit84/issue_68585
TEST_backfill_grow fails after finding "num_bytes mismatch" in osd log Reviewed-by: Ronen Friedman <[email protected]> Reviewed-by: Samuel Just <[email protected]>
2 parents b6d7491 + 0f00894 commit 1c37086

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)