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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 3.6.9, 4.0.4, 4.1.4
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: