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

CleanEveryN hook isn't compatible with MasterSlaveFixture

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Steps To Reproduce:
      Hide

      [CleanEveryN:job0] 2015-12-18T15:30:05.134-0500 Starting the fixture back up again...
      [executor:js_test:job0] 2015-12-18T15:30:05.139-0500 Encountered an error during test execution.
      Traceback (most recent call last):
        File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/job.py", line 39, in __call__
          self._run(queue, interrupt_flag)
        File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/job.py", line 70, in _run
          self._execute_test(test)
        File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/job.py", line 98, in _execute_test
          self._run_hooks_after_tests(test)
        File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/job.py", line 144, in _run_hooks_after_tests
          hook.after_test(self.report)
        File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/hooks.py", line 122, in after_test
          self.fixture.setup()
        File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/fixtures/masterslave.py", line 57, in setup
          self.master.setup()
        File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/fixtures/standalone.py", line 72, in setup
          self.mongod_options["port"] = core.network.PortAllocator.next_fixture_port(self.job_num)
        File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/core/network.py", line 27, in wrapper
          port = func(*args, **kwargs)
        File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/core/network.py", line 87, in next_fixture_port
          % cls._PORTS_PER_FIXTURE)
      PortAllocationError: Fixture has requested more than the 10 ports reserved per fixture
      

      Show
      [CleanEveryN:job0] 2015-12-18T15:30:05.134-0500 Starting the fixture back up again... [executor:js_test:job0] 2015-12-18T15:30:05.139-0500 Encountered an error during test execution. Traceback (most recent call last): File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/job.py", line 39, in __call__ self._run(queue, interrupt_flag) File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/job.py", line 70, in _run self._execute_test(test) File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/job.py", line 98, in _execute_test self._run_hooks_after_tests(test) File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/job.py", line 144, in _run_hooks_after_tests hook.after_test(self.report) File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/hooks.py", line 122, in after_test self.fixture.setup() File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/fixtures/masterslave.py", line 57, in setup self.master.setup() File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/testing/fixtures/standalone.py", line 72, in setup self.mongod_options["port"] = core.network.PortAllocator.next_fixture_port(self.job_num) File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/core/network.py", line 27, in wrapper port = func(*args, **kwargs) File "/home/maxh/debugging/mongo-enterprise/buildscripts/resmokelib/core/network.py", line 87, in next_fixture_port % cls._PORTS_PER_FIXTURE) PortAllocationError: Fixture has requested more than the 10 ports reserved per fixture
    • Sprint:
      QuInt E (01/11/16)

      Description

      MasterSlaveFixture.setup() creates new MongoDFixture instances each time it gets called.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: