From f795261454cced7501d359ae14aea8f066c8d09a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 12 Jan 2012 15:08:11 -0800 Subject: [PATCH] lost_unfound: make test work with backfill If we backfill, we fail to peer instead of having every object show up as 'unfound'. Avoid that by preventing log trimming, so that we always do log recovery for this test. --- teuthology/task/lost_unfound.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/teuthology/task/lost_unfound.py b/teuthology/task/lost_unfound.py index 394f3f8cfe5db..4ea751112b45c 100644 --- a/teuthology/task/lost_unfound.py +++ b/teuthology/task/lost_unfound.py @@ -68,9 +68,11 @@ def task(ctx, config): rados(mon, ['-p', 'data', 'put', 'existed_%d' % f, dummyfile]) rados(mon, ['-p', 'data', 'rm', 'existed_%d' % f]) + # delay recovery, and make the pg log very long (to prevent backfill) manager.raw_cluster_cmd( 'tell', 'osd.1', - 'injectargs', '--osd-recovery-delay-start 1000' + 'injectargs', + '--osd-recovery-delay-start 1000 --osd-min-pg-log-entries 100000000' ) manager.kill_osd(0) -- 2.39.5