Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42195

Stepdown suites fail with Python exception when run with --repeat >1

    • Fully Compatible
    • ALL
    • v4.2, v4.0
    • Hide
      python buildscripts/resmoke.py --suite=replica_sets_kill_primary_jscore_passthrough  jstests/core/indexc.js --repeat=2
      
      Show
      python buildscripts/resmoke.py --suite=replica_sets_kill_primary_jscore_passthrough jstests/core/indexc.js --repeat=2
    • STM 2019-07-29
    • 18
    • 1

      We're attempting to use the same FlagBasedStepdownLifecycle instance across executions of the test suite. This would mean FlagBasedStepdownLifecycle.__should_stop == True the moment the second execution of the test suite begins. We should instead construct a new FlagBasedStepdownLifecycle instance when constructing a new _StepdownThread instance.

      [executor] 2019-07-12T00:12:46.427-0400 Summary: All 5 test(s) passed in 10.96 seconds.
      [ContinuousStepdown:job0] Starting the stepdown thread.
      [ContinuousStepdown:job0] The stepdown thread is not running.
      [executor:js_test:job0] 2019-07-12T00:12:46.429-0400 JSTest jstests/core/indexc.js marked as a failure by a hook's before_test.
      Traceback (most recent call last):
        File "/Users/maxh/debugging/mongo/buildscripts/resmokelib/testing/job.py", line 242, in _run_hooks_before_tests
          self._run_hook(hook, hook.before_test, test)
        File "/Users/maxh/debugging/mongo/buildscripts/resmokelib/testing/job.py", line 228, in _run_hook
          hook_function(test, self.report)
        File "/Users/maxh/debugging/mongo/buildscripts/resmokelib/testing/hooks/stepdown.py", line 97, in before_test
          self._check_thread()
        File "/Users/maxh/debugging/mongo/buildscripts/resmokelib/testing/hooks/stepdown.py", line 113, in _check_thread
          raise errors.ServerFailure(msg)
      buildscripts.resmokelib.errors.ServerFailure: The stepdown thread is not running.
      

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: