File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed
demand-backup-incremental-sharded
demand-backup-incremental
demand-backup-physical-sharded Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ run_recovery_check() {
49
49
50
50
# we don't wait for cluster readiness here because the annotation gets removed then
51
51
wait_restore " ${backup_name} " " ${cluster} " " ready" " 0" " 3000"
52
- kubectl_bin get psmdb ${cluster} -o yaml
52
+
53
+ sleep 5
54
+
53
55
if [ $( kubectl_bin get psmdb ${cluster} -o yaml | yq ' .metadata.annotations."percona.com/resync-pbm"' ) == null ]; then
54
56
log " psmdb/${cluster} should be annotated with percona.com/resync-pbm after a incremental restore"
55
57
exit 1
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ run_recovery_check() {
50
50
# we don't wait for cluster readiness here because the annotation gets removed then
51
51
wait_restore " ${backup_name} " " ${cluster} " " ready" " 0" " 1800"
52
52
53
+ sleep 5
54
+
53
55
if [ $( kubectl_bin get psmdb ${cluster} -o yaml | yq ' .metadata.annotations."percona.com/resync-pbm"' ) == null ]; then
54
56
log " psmdb/${cluster} should be annotated with percona.com/resync-pbm after a incremental restore"
55
57
exit 1
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ run_recovery_check() {
37
37
# we don't wait for cluster readiness here because the annotation gets removed then
38
38
wait_restore " ${backup_name} " " ${cluster} " " ready" " 0" " 3000"
39
39
40
+ sleep 5
41
+
40
42
if [ $( kubectl_bin get psmdb ${cluster} -o yaml | yq ' .metadata.annotations."percona.com/resync-pbm"' ) == null ]; then
41
43
echo " psmdb/${cluster} should be annotated with percona.com/resync-pbm after a physical restore"
42
44
exit 1
Original file line number Diff line number Diff line change @@ -37,14 +37,15 @@ run_recovery_check() {
37
37
# we don't wait for cluster readiness here because the annotation gets removed then
38
38
wait_restore " ${backup_name} " " ${cluster} " " ready" " 0" " 1800"
39
39
40
+ sleep 5
41
+
40
42
if [ $( kubectl_bin get psmdb ${cluster} -o yaml | yq ' .metadata.annotations."percona.com/resync-pbm"' ) == null ]; then
41
43
echo " psmdb/${cluster} should be annotated with percona.com/resync-pbm after a physical restore"
42
44
exit 1
43
45
fi
44
46
echo
45
47
46
48
wait_cluster_consistency ${cluster}
47
- sleep 5
48
49
wait_for_pbm_operations ${cluster}
49
50
50
51
compare_mongo_cmd " find" " myApp:myPass@${cluster} -rs0-0.${cluster} -rs0.${namespace} "
You can’t perform that action at this time.
0 commit comments