Skip to content

Commit

Permalink
attempt to fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Mar 28, 2024
1 parent 425b725 commit 75c701d
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions test/endtoend/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,24 +101,16 @@ function takeBackup() {
sleep 3
done

sleep 10

mysql 'commerce:-' -e "flush binary logs" || echo "flushing binlogs failed"

# Now perform an incremental backup.
insertWithRetry
sleep 2
INCREMENTAL_RESTORE_TIMESTAMP=$(date -u "+%Y-%m-%dT%H:%M:%SZ")
sleep 1

mysql 'commerce:-' -e "flush binary logs" || echo "flushing binlogs failed"

sleep 10
sleep 2
insertWithRetry

vtctldclient BackupShard --incremental-from-pos=auto "${keyspaceShard}"
let finalBackupCount=${finalBackupCount}+1

mysql 'commerce:-' -e "flush binary logs" || echo "flushing binlogs failed"

for i in {1..600} ; do
out=$(kubectl get vtb --no-headers | wc -l)
if echo "${out}" | grep -c "${finalBackupCount}" >/dev/null; then
Expand Down

0 comments on commit 75c701d

Please sign in to comment.