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

Rewrite `CacheSizeZero` from ReadThroughCacheTest to use the MockThreadPool

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.4.0-rc7, 4.7.0
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Execution Team 2020-06-01
    • 0

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: