File tree 1 file changed +8
-0
lines changed
buildscripts/resmokelib/testing/hooks
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):
321
321
322
322
secondaries = rs_fixture .get_secondaries ()
323
323
324
+ self .logger .info ("Stepping down primary on port %d of replica set '%s'" , old_primary .port ,
325
+ rs_fixture .replset_name )
324
326
if self ._terminate :
325
327
if not rs_fixture .stop_primary (old_primary , self ._background_reconfig , self ._kill ):
326
328
return
@@ -333,7 +335,13 @@ def _step_down(self, rs_fixture):
333
335
def step_up_secondary ():
334
336
while secondaries :
335
337
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 )
336
341
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 )
337
345
secondaries .remove (chosen )
338
346
else :
339
347
return chosen
You can’t perform that action at this time.
0 commit comments