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

needsRefresh flag is not checked on catalogue cache's onStaleShardVersion

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.4
    • Sharding 2020-03-09, Sharding 2020-03-23, Sharding 2020-04-06
    • 9

      There is a check on catalogue cache that sets as needRefresh the RoutingInfoCache of a collection.

      Before setting the flag, the function makes sure that the collection haven't been dropped, however this is not enough. We could've marked the cache as needsRefresh from another thread, which causes the server to crash as we have seen on some build failures.

      Besides checking if the collection was dropped, we should check if the needsRefresh flag was already set.

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: