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

disable mirroredReads in plan_cache_stats_all_hosts_sharded

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc4
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v7.1
    • QI 2023-09-18
    • 8

      Starting in 4.4, mirrored reads are enabled by default with a sampling rate of 0.10. If not disabled, the primary node mirrors supported reads (this includes find queries) to the secondary node's cache to "warm it up" to reduce performance impact of primary elections. Here the cache means "everything on RAM", which includes the plan cache. Thus even though the primary node executes a find query, the secondary's cache will "mirror" this read and have a plan for it in its plan cache. This results in the secondary having more plans in the cache than it executed. We disable this mirroring so the test passes in burn_in_tests.

            Assignee:
            maddie.zechar@mongodb.com Maddie Zechar
            Reporter:
            maddie.zechar@mongodb.com Maddie Zechar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: