Do not force a Shard Registry lookup if topology time doesn't change

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0, v7.0, v6.0, v5.0
    • CAR Team 2024-07-08, CAR Team 2024-07-22, Cluster Scalability 2024-6-10, CAR Team 2024-08-05, CAR Team 2024-08-19, CAR Team 2024-09-02
    • 200
    • 3
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Note: the change was reverted for 8.1 and 8.0.6 due to SERVER-101739
      ShardRegistry does a periodic _lookup of cache every 30 seconds by default. We currently force a refresh pessimistically and in doing so block all threads that need shard registry data for targeting shards over the network. This can be bad for user threads which get blocked until the refresh completes, particularly for colocated/non-dedicated config servers when there are lagging secondaries and the reads go to them.

            Assignee:
            Yujin Kang Park
            Reporter:
            Abdul Qadeer
            Votes:
            0 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: