You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
isMaster=$(run_mongo_tls "db.isMaster().ismaster""clusterAdmin:[email protected],some-name-rs0-1.clouddemo.xyz,some-name-rs0-2.clouddemo.xyz" mongodb """--quiet"| egrep -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:'| grep -v certificateNames)
52
52
if [ "${isMaster}"!="true" ];then
53
53
collect_k8s_logs
54
-
echo"mongo client should've redirect the connection to primary"
55
-
exit 1
54
+
echo"mongo client should've redirect the connection to primary"
55
+
exit 1
56
56
fi
57
57
58
58
# stepping down to ensure we haven't redirected to primary just because primary is pod-0
isMaster=$(run_mongo_tls "db.isMaster().ismaster""clusterAdmin:[email protected],some-name-rs0-1.clouddemo.xyz,some-name-rs0-2.clouddemo.xyz" mongodb """--quiet"| egrep -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:'| grep -v certificateNames)
66
66
if [ "${isMaster}"!="true" ];then
67
67
collect_k8s_logs
68
-
echo"mongo client should've redirect the connection to primary"
69
-
exit 1
68
+
echo"mongo client should've redirect the connection to primary"
0 commit comments