Initial propose view_change
@@ -1168,6 +1168,8 @@ class Node(HasActionQueue, Motor, Propagator, MessageProcessor, HasFileStorage,
self.view_changer = self.newViewChanger()
self.elector = self.newPrimaryDecider()
+ self.schedule_initial_propose_view_change()
+
self.schedule_node_status_dump()
self.dump_additional_info()
@@ -1182,6 +1184,12 @@ class Node(HasActionQueue, Motor, Propagator, MessageProcessor, HasFileStorage,
self.logNodeInfo()
+ def schedule_initial_propose_view_change(self):
+ # It is supposed that master's primary is lost until it is connected
+ self.primaries_disconnection_times[self.master_replica.instId] = time.perf_counter()
+ self._schedule(action=self.propose_view_change,
+ seconds=self.config.INITIAL_PROPOSE_VIEW_CHANGE_TIMEOUT)
+
def schedule_node_status_dump(self):
# one-shot dump right after start
self._schedule(action=self._info_tool.dump_general_info,
