Set sync intervals to 3 seconds, use SLEEP1 and SLEEP2 for sync delays

This commit is contained in:
Howard Chu 2008-11-22 23:48:17 +00:00
parent 2fef543ef9
commit 6629ca8655
12 changed files with 115 additions and 137 deletions

View file

@ -46,6 +46,8 @@ WITH_SASL=${AC_WITH_SASL-no}
USE_SASL=${SLAPD_USE_SASL-no}
ACI=${AC_ACI_ENABLED-acino}
THREADS=${AC_THREADS-threadsno}
SLEEP1=${SLEEP1-5}
SLEEP2=${SLEEP2-10}
# dirs
PROGDIR=./progs

View file

@ -113,8 +113,8 @@ if test $RC != 0 ; then
exit $RC
fi
echo "Waiting 15 seconds for syncrepl to receive changes..."
sleep 15
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Using ldapmodify to modify producer directory..."
@ -202,8 +202,8 @@ if test $RC != 0 ; then
exit $RC
fi
echo "Waiting 15 seconds for syncrepl to receive changes..."
sleep 15
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Try updating the consumer slapd..."
$LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT2 -w $PASSWD > \

View file

@ -13,7 +13,7 @@
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
if test "$BACKEND" != "bdb" && test "$BACKEND" != "hdb" ; then
if test "$BACKEND" != "bdb" && test "$BACKEND" != "hdb" && test "$BACKEND" != "ldif"; then
echo "Test does not support $BACKEND"
exit 0
fi
@ -118,8 +118,8 @@ if test $RC != 0 ; then
exit $RC
fi
echo "Waiting 15 seconds for syncrepl to receive changes..."
sleep 15
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Stopping the provider, sleeping 10 seconds and restarting it..."
kill -HUP "$PID"
@ -251,8 +251,8 @@ if test $RC != 0 ; then
exit $RC
fi
echo "Waiting 15 seconds for syncrepl to receive changes..."
sleep 15
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Stopping consumer to test recovery..."
kill -HUP $SLAVEPID
@ -288,8 +288,8 @@ if test $WAIT != 0 ; then
fi
KILLPIDS="$PID $SLAVEPID"
echo "Waiting 25 seconds for syncrepl to receive changes..."
sleep 25
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
if test ! $BACKLDAP = "ldapno" ; then
echo "Try updating the consumer slapd..."
@ -322,8 +322,8 @@ EOMODS
exit $RC
fi
echo "Waiting 15 seconds for syncrepl to receive changes..."
sleep 15
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
fi
OPATTRS="entryUUID creatorsName createTimestamp modifiersName modifyTimestamp"

View file

@ -237,8 +237,8 @@ if test $RC != 0 ; then
exit $RC
fi
echo "Waiting 25 seconds for syncrepl to receive changes..."
sleep 25
echo "Waiting $SLEEP2 seconds for syncrepl to receive changes..."
sleep $SLEEP2
echo "Using ldapmodify to modify master directory..."
@ -326,8 +326,8 @@ if test $RC != 0 ; then
exit $RC
fi
echo "Waiting 25 seconds for syncrepl to receive changes..."
sleep 25
echo "Waiting $SLEEP2 seconds for syncrepl to receive changes..."
sleep $SLEEP2
echo "Using ldapsearch to read all the entries from the master..."
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \

View file

@ -132,9 +132,8 @@ case $RC in
;;
esac
SLEEP=15
echo "Waiting $SLEEP seconds for shadow subtrees to sync..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for shadow subtrees to sync..."
sleep $SLEEP1
echo "Filtering original ldif used to create database..."
. $LDIFFILTER < $GLUESYNCOUT > $LDIFFLT

View file

@ -122,8 +122,8 @@ if test $RC != 0 ; then
exit $RC
fi
echo "Waiting 15 seconds for syncrepl to receive changes..."
sleep 15
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Stopping the provider, sleeping 10 seconds and restarting it..."
kill -HUP "$PID"
@ -242,8 +242,8 @@ if test $RC != 0 ; then
exit $RC
fi
echo "Waiting 15 seconds for syncrepl to receive changes..."
sleep 15
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Stopping consumer to test recovery..."
kill -HUP $SLAVEPID
@ -288,8 +288,8 @@ if test $WAIT != 0 ; then
fi
KILLPIDS="$PID $SLAVEPID"
echo "Waiting 25 seconds for syncrepl to receive changes..."
sleep 25
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
if test ! $BACKLDAP = "ldapno" ; then
echo "Try updating the consumer slapd..."
@ -310,8 +310,8 @@ EOMODS
exit $RC
fi
echo "Waiting 15 seconds for syncrepl to receive changes..."
sleep 15
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
fi
echo "Using ldapsearch to read all the entries from the producer..."

View file

@ -203,9 +203,8 @@ for i in 1 2 3; do
break
fi
SLEEP=5
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
done
#echo "Using ldapsearch to read all the entries from the master..."
@ -245,11 +244,10 @@ if test $? != 0 ; then
fi
CHECK=`expr $CHECK + 1`
SLEEP=10
echo "$CHECK > Stopping the provider, sleeping $SLEEP seconds and restarting it..."
echo "$CHECK > Stopping the provider, sleeping $SLEEP2 seconds and restarting it..."
kill -HUP "$MASTERPID"
wait $MASTERPID
sleep $SLEEP
sleep $SLEEP2
echo "======================= RESTART =======================" >> $LOG1
$SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING >> $LOG1 2>&1 &
@ -379,9 +377,8 @@ fi
# check slave contextCSN
for i in 1 2 3; do
SLEEP=5
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
'(objectClass=*)' -s base contextCSN > "${SLAVEOUT}.$CHECK" 2>&1
@ -487,9 +484,8 @@ fi
# check slave contextCSN
for i in 1 2 3 4 5; do
SLEEP=5
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
'(objectClass=*)' -s base contextCSN > "${SLAVEOUT}.$CHECK" 2>&1
@ -593,9 +589,8 @@ for i in 1 2 3; do
break
fi
SLEEP=5
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
done
#echo "Using ldapsearch to read all the entries from the master..."
@ -649,9 +644,8 @@ drink: Mad Dog 20/20
EOMODS
SLEEP=10
echo "Waiting $SLEEP seconds for syncrepl to retry..."
sleep $SLEEP
echo "Waiting $SLEEP2 seconds for syncrepl to retry..."
sleep $SLEEP2
echo "Restarting consumer..."
echo "======================= RESTART =======================" >> $LOG2
@ -676,9 +670,8 @@ fi
# check slave contextCSN
for i in 1 2 3 4 5; do
SLEEP=5
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
'(objectClass=*)' -s base contextCSN > "${SLAVEOUT}.$CHECK" 2>&1
@ -750,9 +743,8 @@ if test $? != 0 ; then
fi
KILLPIDS="$MASTERPID $SLAVEPID $PROXYPID"
SLEEP=15
echo " Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo " Waiting $SLEEP2 seconds for syncrepl to receive changes..."
sleep $SLEEP2
#echo "Using ldapsearch to read all the entries from the slave..."
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \
@ -834,9 +826,8 @@ for i in 1 2 3; do
break
fi
SLEEP=5
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
done
#echo "Using ldapsearch to read all the entries from the master..."

View file

@ -159,9 +159,8 @@ if test $RC != 0 ; then
exit $RC
fi
SLEEP=15
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
#echo "Using ldapsearch to read all the entries from the master..."
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
@ -223,11 +222,10 @@ if test $? != 0 ; then
fi
CHECK=`expr $CHECK + 1`
SLEEP=10
echo "$CHECK > Stopping the provider, sleeping $SLEEP seconds and restarting it..."
echo "$CHECK > Stopping the provider, sleeping $SLEEP2 seconds and restarting it..."
kill -HUP "$MASTERPID"
wait $MASTERPID
sleep $SLEEP
sleep $SLEEP2
echo "======================= RESTART =======================" >> $LOG1
$SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING >> $LOG1 2>&1 &
@ -345,9 +343,8 @@ if test $RC != 0 ; then
exit $RC
fi
SLEEP=15
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
#echo "Using ldapsearch to read all the entries from the master..."
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
@ -457,9 +454,8 @@ if test $WAIT != 0 ; then
fi
KILLPIDS="$MASTERPID $P1SLAVEPID $R1SLAVEPID"
SLEEP=25
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
#echo "Using ldapsearch to read all the entries from the master..."
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
@ -539,9 +535,8 @@ if test $RC != 0 ; then
exit $RC
fi
SLEEP=15
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
#echo "Using ldapsearch to read all the entries from the master..."
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \

View file

@ -37,7 +37,7 @@ if test x"$SYNCMODE" = x ; then
fi
case "$SYNCMODE" in
ro)
SYNCTYPE="type=refreshOnly interval=00:00:00:10"
SYNCTYPE="type=refreshOnly interval=00:00:00:03"
;;
rp)
SYNCTYPE="type=refreshAndPersist"
@ -114,7 +114,7 @@ changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=001 provider=$URI1 binddn="cn=config" bindmethod=simple
credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
-
add: olcUpdateRef
olcUpdateRef: $URI1
@ -171,15 +171,14 @@ changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=001 provider=$URI1 binddn="cn=config" bindmethod=simple
credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
-
add: olcUpdateRef
olcUpdateRef: $URI1
EOF
SLEEP=10
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Using ldapsearch to check that syncrepl received config changes..."
RC=32
@ -191,8 +190,8 @@ for i in 0 1 2 3 4 5; do
RC=0
break
fi
echo "Waiting 5 seconds for syncrepl to receive changes..."
sleep 5
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
done
if test $RC != 0 ; then
@ -247,7 +246,7 @@ olcRootDN: $MANAGERDN
olcRootPW: $PASSWD
olcSyncRepl: rid=002 provider=$URI1 binddn="$MANAGERDN" bindmethod=simple
credentials=$PASSWD searchbase="$BASEDN" $SYNCTYPE
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
olcUpdateRef: $URI1
dn: olcOverlay=syncprov,olcDatabase={1}${BACKEND},cn=config
@ -291,9 +290,8 @@ if test $RC != 0 ; then
exit $RC
fi
SLEEP=20
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Using ldapsearch to check that syncrepl received database changes..."
RC=32
@ -305,8 +303,8 @@ for i in 0 1 2 3 4 5; do
RC=0
break
fi
echo "Waiting 5 seconds for syncrepl to receive changes..."
sleep 5
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
done
if test $RC != 0 ; then

View file

@ -40,7 +40,7 @@ if test x"$SYNCMODE" = x ; then
fi
case "$SYNCMODE" in
ro)
SYNCTYPE="type=refreshOnly interval=00:00:00:10"
SYNCTYPE="type=refreshOnly interval=00:00:00:03"
;;
rp)
SYNCTYPE="type=refreshAndPersist"
@ -173,13 +173,13 @@ changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=001 provider=$URI1 binddn="cn=config" bindmethod=simple
credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
olcSyncRepl: rid=002 provider=$URI2 binddn="cn=config" bindmethod=simple
credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
olcSyncRepl: rid=003 provider=$URI3 binddn="cn=config" bindmethod=simple
credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
-
add: olcMirrorMode
olcMirrorMode: TRUE
@ -229,13 +229,13 @@ changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=001 provider=$URI1 binddn="cn=config" bindmethod=simple
credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
olcSyncRepl: rid=002 provider=$URI2 binddn="cn=config" bindmethod=simple
credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
olcSyncRepl: rid=003 provider=$URI3 binddn="cn=config" bindmethod=simple
credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
-
add: olcMirrorMode
olcMirrorMode: TRUE
@ -279,13 +279,13 @@ changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=001 provider=$URI1 binddn="cn=config" bindmethod=simple
credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
olcSyncRepl: rid=002 provider=$URI2 binddn="cn=config" bindmethod=simple
credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
olcSyncRepl: rid=003 provider=$URI3 binddn="cn=config" bindmethod=simple
credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
-
add: olcMirrorMode
olcMirrorMode: TRUE
@ -337,13 +337,13 @@ olcRootDN: $MANAGERDN
olcRootPW: $PASSWD
olcSyncRepl: rid=004 provider=$URI1 binddn="$MANAGERDN" bindmethod=simple
credentials=$PASSWD searchbase="$BASEDN" $SYNCTYPE
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
olcSyncRepl: rid=005 provider=$URI2 binddn="$MANAGERDN" bindmethod=simple
credentials=$PASSWD searchbase="$BASEDN" $SYNCTYPE
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
olcSyncRepl: rid=006 provider=$URI3 binddn="$MANAGERDN" bindmethod=simple
credentials=$PASSWD searchbase="$BASEDN" $SYNCTYPE
retry="5 5 300 5" timeout=3
retry="3 5 300 5" timeout=3
olcMirrorMode: TRUE
dn: olcOverlay=syncprov,olcDatabase={1}${BACKEND},cn=config
@ -387,9 +387,8 @@ if test $RC != 0 ; then
exit $RC
fi
SLEEP=20
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Using ldapadd to populate consumer1..."
$LDAPADD -D "$MANAGERDN" -H $URI2 -w $PASSWD -f $LDIFADD1 \
@ -401,9 +400,8 @@ if test $RC != 0 ; then
exit $RC
fi
SLEEP=20
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Using ldapadd to populate consumer2..."
$LDAPADD -D "$MANAGERDN" -H $URI3 -w $PASSWD \
@ -420,9 +418,8 @@ if test $RC != 0 ; then
exit $RC
fi
SLEEP=20
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Using ldapmodify to add to the producer entries that will be deleted..."
$LDAPMODIFY -D "$MANAGERDN" -H $URI1 -w $PASSWD \
@ -452,9 +449,8 @@ if test $RC != 0 ; then
exit $RC
fi
SLEEP=20
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Using ldapmodify to delete entries from consumer1..."
$LDAPMODIFY -D "$MANAGERDN" -H $URI2 -w $PASSWD \
@ -469,9 +465,8 @@ if test $RC != 0 ; then
exit $RC
fi
SLEEP=20
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Using ldapmodify to delete entries from consumer2..."
$LDAPMODIFY -D "$MANAGERDN" -H $URI3 -w $PASSWD \
@ -486,9 +481,8 @@ if test $RC != 0 ; then
exit $RC
fi
SLEEP=20
echo "Waiting $SLEEP seconds for syncrepl to receive changes..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Using ldapsearch to check that syncrepl received database changes..."
RC=32
@ -500,8 +494,8 @@ for i in 0 1 2 3 4 5; do
RC=0
break
fi
echo "Waiting 5 seconds for syncrepl to receive changes..."
sleep 5
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
done
if test $RC != 0 ; then
@ -520,8 +514,8 @@ for i in 0 1 2 3 4 5; do
RC=0
break
fi
echo "Waiting 5 seconds for syncrepl to receive changes..."
sleep 5
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
done
if test $RC != 0 ; then
@ -747,9 +741,8 @@ if test $RC != 0 ; then
fi
# Insert modifications and more tests here.
SLEEP=10
echo "Waiting $SLEEP seconds for servers to resync..."
sleep $SLEEP
echo "Waiting $SLEEP1 seconds for servers to resync..."
sleep $SLEEP1
test $KILLSERVERS != no && kill -HUP $KILLPIDS

View file

@ -50,7 +50,7 @@ if test x"$SYNCMODE" = x ; then
fi
case "$SYNCMODE" in
ro)
SYNCTYPE="type=refreshOnly interval=00:00:00:10"
SYNCTYPE="type=refreshOnly interval=00:00:00:03"
;;
rp)
SYNCTYPE="type=refreshAndPersist"
@ -394,7 +394,7 @@ changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=1 provider=$URI2 searchbase="ou=ou1,$BASEDN"
binddn="$MANAGERDN" bindmethod=simple credentials=$PASSWD
$SYNCTYPE retry="5 5 300 5" timeout=1
$SYNCTYPE retry="3 5 300 5" timeout=1
EOF
RC=$?
@ -411,7 +411,7 @@ changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=1 provider=$URI1 searchbase="$BASEDN"
binddn="$MANAGERDN" bindmethod=simple credentials=$PASSWD
$SYNCTYPE retry="5 5 300 5" timeout=1
$SYNCTYPE retry="3 5 300 5" timeout=1
EOF
RC=$?
@ -431,8 +431,8 @@ for i in 0 1 2 3 4 5; do
RC=0
break
fi
echo "Waiting 5 seconds for syncrepl to receive changes..."
sleep 5
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
done
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
@ -467,8 +467,8 @@ for i in 0 1 2 3 4 5; do
RC=0
break
fi
echo "Waiting 5 seconds for syncrepl to receive changes..."
sleep 5
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
done
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"

View file

@ -125,8 +125,8 @@ $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD < \
C2PID=$!
wait $C1PID $C2PID
echo "Waiting 15 seconds for syncrepl to receive changes..."
sleep 15
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Stopping the provider, sleeping 10 seconds and restarting it..."
kill -HUP "$PID"
@ -261,8 +261,8 @@ if test $RC != 0 ; then
exit $RC
fi
echo "Waiting 15 seconds for syncrepl to receive changes..."
sleep 15
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
echo "Stopping consumer to test recovery..."
kill -HUP $SLAVEPID
@ -298,8 +298,8 @@ if test $WAIT != 0 ; then
fi
KILLPIDS="$PID $SLAVEPID"
echo "Waiting 25 seconds for syncrepl to receive changes..."
sleep 25
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
if test ! $BACKLDAP = "ldapno" ; then
echo "Try updating the consumer slapd..."
@ -332,8 +332,8 @@ EOMODS
exit $RC
fi
echo "Waiting 15 seconds for syncrepl to receive changes..."
sleep 15
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
fi
OPATTRS="entryUUID creatorsName createTimestamp modifiersName modifyTimestamp"