Commit 0c2f0e02 authored by Mark Andrews's avatar Mark Andrews

Wait longer (up to 20 secs) for journal to be truncated

parent cda220ff
...@@ -842,14 +842,11 @@ size=`$PERL -e 'use File::stat; my $sb = stat(@ARGV[0]); printf("%s\n", $sb->siz ...@@ -842,14 +842,11 @@ size=`$PERL -e 'use File::stat; my $sb = stat(@ARGV[0]); printf("%s\n", $sb->siz
[ "$size" -gt 6000 ] || ret=1 [ "$size" -gt 6000 ] || ret=1
sleep 1 sleep 1
$RNDCCMD 10.53.0.1 sync maxjournal.test $RNDCCMD 10.53.0.1 sync maxjournal.test
for i in 1 2 3 4 5 6 check_size_lt_5000() (
do
sleep 1
size=`$PERL -e 'use File::stat; my $sb = stat(@ARGV[0]); printf("%s\n", $sb->size);' ns1/maxjournal.db.jnl` size=`$PERL -e 'use File::stat; my $sb = stat(@ARGV[0]); printf("%s\n", $sb->size);' ns1/maxjournal.db.jnl`
[ "$size" -lt 5000 ] && break [ "$size" -lt 5000 ]
done )
size=`$PERL -e 'use File::stat; my $sb = stat(@ARGV[0]); printf("%s\n", $sb->size);' ns1/maxjournal.db.jnl` retry_quiet 20 check_size_lt_5000 || ret=1
[ "$size" -lt 5000 ] || ret=1
[ $ret = 0 ] || { echo_i "failed"; status=1; } [ $ret = 0 ] || { echo_i "failed"; status=1; }
n=`expr $n + 1` n=`expr $n + 1`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment