]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/standalone: add polling for PG log trimming in osd-backfill-recovery-log
authorKamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
Tue, 10 Feb 2026 20:10:47 +0000 (20:10 +0000)
committerKamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
Tue, 10 Feb 2026 21:09:34 +0000 (21:09 +0000)
commit6a02f6b4612eabc23c9bbc9d4eefee906aba2458
tree8d4f061276d69e1c49a99e6a16642bdfd0ac0011
parentec9648151bacf875d54b3249d19bd2a7ffef0b25
qa/standalone: add polling for PG log trimming in osd-backfill-recovery-log

Add a 30-second polling loop after flush_pg_stats to wait for PG log
and duplicate entries to be trimmed to their expected sizes before
validation. This addresses timing issues where the test was inspecting
the objectstore before log trimming operations completed.

The loop polls 'ceph pg query' to check both log and dups lengths,
breaking when both reach or fall below expected thresholds. This
prevents spurious test failures on varied teuthology machines where log
trimming happens at different speed after recovery completes.

Solves intermittent failures where logs showed 50 entries instead of
expected 2, and dups showed 7 instead of expected 8.

Fixes: https://tracker.ceph.com/issues/74524
Signed-off-by: Kamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
qa/standalone/osd-backfill/osd-backfill-recovery-log.sh