Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Commit

Permalink
refcount test comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pshahzeb committed May 5, 2017
1 parent be205c1 commit c89cae0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion misc/scripts/refcnt_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function check_files {
}

function check_recovery_record {
# restart generates some log.
# log contains refcounting attempts and after success logs summary.
line=`tail -50 /var/log/docker-volume-vsphere.log | $GREP 'Volume name=' | $GREP 'mounted=true'`
expected="count=$count mounted=true"

Expand All @@ -82,6 +82,7 @@ function check_recovery_record {
function test_crash_recovery {
timeout=$1
echo "Checking recovery through docker kill"
# kill docker daemon forcefully
pkill -9 dockerd
until pids=$(pidof dockerd)
do
Expand Down Expand Up @@ -116,6 +117,7 @@ fi
echo "$(docker volume ls)"
for i in `seq 1 $count`
do
# run containers with restart flag so they restart after docker restart
$DOCKER run -d --restart=always -v $vname:/v busybox sh -c "touch /v/file$i; sync ; \
while true; do sleep $timeout; done"
done
Expand Down

0 comments on commit c89cae0

Please sign in to comment.