Skip to content

Commit a4388df

Browse files
authored
Merge pull request ceph#64429 from ronen-fr/wip-rf-noempty
qa/standalone/scrub: fix "scrubbed in 0ms" in osd-scrub-test.sh Reviewed-by: Radoslaw Zarzynski <[email protected]>
2 parents ee153ca + b303afe commit a4388df

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

qa/standalone/scrub/osd-scrub-test.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ function TEST_just_deep_scrubs() {
472472
echo "Pool: $poolname : $poolid"
473473

474474
TESTDATA="testdata.$$"
475-
local objects=15
475+
local objects=90
476476
dd if=/dev/urandom of=$TESTDATA bs=1032 count=1
477477
for i in `seq 1 $objects`
478478
do
@@ -502,6 +502,10 @@ function TEST_just_deep_scrubs() {
502502
ceph tell $pgid schedule-deep-scrub
503503

504504
sleep 5 # 5s is the 'pg dump' interval
505+
506+
ceph pg dump pgs --format=json-pretty | jq -r '.pg_stats[] | "\(.pgid) \(.stat_sum.num_objects)"'
507+
echo "Objects # in pg $pgid: " $(ceph pg $pgid query --format=json-pretty | jq -r '.info.stats.stat_sum.num_objects')
508+
505509
declare -A sc_data_2
506510
extract_published_sch $pgid $now_is $now_is sc_data_2
507511
echo "test counter @ should show no change: " ${sc_data_2['query_scrub_seq']}
@@ -526,7 +530,7 @@ function TEST_dump_scrub_schedule() {
526530
local dir=$1
527531
local poolname=test
528532
local OSDS=3
529-
local objects=15
533+
local objects=90
530534

531535
TESTDATA="testdata.$$"
532536

0 commit comments

Comments
 (0)