Add sleep before trying to cancel pending restore.

We have encountered situations that indicates that the server responds:
"There are no restartable restore sessions."
But in the following command says:
>>>>>> Restore Processing Interrupted!! <<<<<<
ANS1330S This node currently has a pending restartable restore session.

The requested operation cannot complete until this session either
completes or is canceled.
This commit is contained in:
Patrik Holmqvist 2025-04-28 16:56:50 +02:00
parent 5d6700d341
commit fdff305b99
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273
2 changed files with 4 additions and 0 deletions

View file

@ -20,6 +20,7 @@ expect "Action \\\[1,2,3,A\\\] : " {
"ANS8013I Invalid encryption key password" {
set exit_val 0
expect "Action \\\[1,2,3,A\\\] : "
sleep 5
send -- "A\r"
}
eof {

View file

@ -42,6 +42,9 @@ exit_if_failed $?
/opt/baas2/run-failed-restore.expect "$nodename"
exit_if_failed $?
# Sleep to give backup server time to register an pending/open restore session
sleep 10
# Run expect script that cancel any pending/open restores (which is an excpected result of the failed restore above)
/opt/baas2/cancel-restore.expect "$nodename"
exit_if_failed $?