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

list_local_sessions.js expects non-existent session to exist when running concurrently with LogicalSessionsCache refresh

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.9, 4.0.4, 4.1.4
    • Affects Version/s: 4.1.2
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Sharding 2018-09-24

      Investigation

      When running a passthrough suite with the logical session cache refresh set to 100ms, it can cause failures in list_local_sessions.js. The test expects a session to exist, but it's likely been reaped by the time that assert.expect is run.

      Proposed Fix

      After some thought, it seems the best idea to blacklist list_sessions.js and list_all_sessions from the logical session cache suites. These tests rely on the command `refreshLogicalSessionCacheNow`, which is supposed to refresh the cache in a deterministic fashion. Running these tests with the background refresh thread on interferes with the deterministic nature of the tests, because refresh operations can happen when they're not supposed to.

      Since both these tests are in jsCore, I'm not worried about losing test coverage.

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            blake.oler@mongodb.com Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: