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:
parent
5d6700d341
commit
fdff305b99
2 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 $?
|
||||
|
|
Loading…
Add table
Reference in a new issue