File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
buildscripts/resmokelib/testing/hooks Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments