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
{{ message }}
Repository navigation
Commit 910a24e
Browse filesBrowse the repository at this point in the historyBrowse files
clusterer_controller: netns T44 - an MI reload of the DB clusters beside controller clusters
A node with cluster 901 in a db_text DB, controller clusters 741/742 and
tm on 741 runs clusterer:reload: the controller clusters, their nodes
and tm's capability must stay, and a DB that moves the node from 901 to
741 must make the reload fail and leave every cluster as it was. It
moves rather than adds: db_text matches a query's keys with AND only, so
it can load one DB cluster per node.
# the DB now has n1 in 741 instead of 901 (db_text ANDs a query's keys, so
1062
+
# it loads one DB cluster per node: no second row)
1063
+
sleep 1; sed -i 's/^\([12]\):901:/\1:741:/'$D/clusterer
1064
+
RL=$(mi 1 clusterer:reload)
1065
+
check "the DB defining the controller's 741 makes the reload fail, every cluster left as it was"$(echo "$RL"| grep -q '"error"'&& [ "$(clusters 1)"="$C0" ] && [ "$(members 1 741)"="$M0" ] &&echo 1 ||echo 0)"reload: $(echo $RL| cut -c1-80) / clusters '$(clusters 1)'"
1033
1066
fi
1034
1067
1035
1068
# groups 1 and 2 run before T10/T11 and are not checked
0 commit comments