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

Rewrite `CacheSizeZero` from ReadThroughCacheTest to use the MockThreadPool

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc7, 4.7.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.4
    • Execution Team 2020-06-01
    • 0

      The CacheSizeZero test expects certain behaviour from the ReadThroughCache, which cannot actually guaranteed as explained in this comment.

      The exact race condition in the test is explained in the description of SERVER-47654.

      Because of this, the test should be re-written as an "async" test to use the MockThreadPoo so that the lifetime of the returned handles is predictable.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: