Skip to content

Commit 4087dbb

Browse files
kauboy26Evergreen Agent
authored and
Evergreen Agent
committed
SERVER-81984 have ContinuousStepdown log that it is attempting to step up a node.
1 parent 0323b6f commit 4087dbb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

buildscripts/resmokelib/testing/hooks/stepdown.py

+8
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ def _step_down(self, rs_fixture):
321321

322322
secondaries = rs_fixture.get_secondaries()
323323

324+
self.logger.info("Stepping down primary on port %d of replica set '%s'", old_primary.port,
325+
rs_fixture.replset_name)
324326
if self._terminate:
325327
if not rs_fixture.stop_primary(old_primary, self._background_reconfig, self._kill):
326328
return
@@ -333,7 +335,13 @@ def _step_down(self, rs_fixture):
333335
def step_up_secondary():
334336
while secondaries:
335337
chosen = random.choice(secondaries)
338+
self.logger.info(
339+
"Chose secondary on port %d of replica set '%s' for step up attempt.",
340+
chosen.port, rs_fixture.replset_name)
336341
if not rs_fixture.stepup_node(chosen, self._auth_options):
342+
self.logger.info(
343+
"Attempt to step up secondary on port %d of replica set '%s' failed.",
344+
chosen.port, rs_fixture.replset_name)
337345
secondaries.remove(chosen)
338346
else:
339347
return chosen

0 commit comments

Comments
 (0)