Merge pull request #60636 from mohit84/issue_68585

TEST_backfill_grow fails after finding "num_bytes mismatch" in osd log

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
Yuri Weinstein 2024-11-21 15:52:00 -08:00 committed by GitHub
commit 1c37086b5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -609,9 +609,16 @@ function TEST_backfill_grow() {
wait_for_clean || return 1
#Capture the timestamp after complete cleanup or finish the recovery progress
current_timestamp=$(date +"%Y-%m-%dT%H:%M:%S")
delete_pool $poolname
kill_daemons $dir || return 1
! grep -q "num_bytes mismatch" $dir/osd.*.log || return 1
#Ignore the num_bytes mismatch messages before calling wait_cleanup
if ! awk -v ts="$current_timestamp" '$0 >= ts && /num_bytes mismatch/' $dir/osd.*.log > /dev/null; then
return 1
fi
}
# Create a 5 shard EC pool on 6 OSD cluster