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

Change query stats store resizing and number of queries ran in query_stats_concurrent.js

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Query Integration
    • Fully Compatible
    • 152

      This ticket aims to fix BF-32234. The failure happens on the TSAN variant, which is under an XXL host (~100GB of RAM, 96 cores). The host's specs cause a recalculation of the number of partitions for the query stats store, which you can see here. The problem lies in the test performing a resizing of the cache from the initial 1GB (1% of the available memory on startup) to 1MB. The partitions then become too small to hold a single query stats entry, and as we get an empty cursor from querying the store this assertion will fail, along with this other one. We cannot simply change the resize value to something larger, as the rest of the variants will fail to evict, so instead of a fixed size change we need a % change. Because some partitions might still be big enough, a change in the number of queries ran before eviction is also necessary to ensure the assertion will not fail.

            Assignee:
            mariano.shaar@mongodb.com Mariano Shaar
            Reporter:
            mariano.shaar@mongodb.com Mariano Shaar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: