Refresh after chunk migration commit may not see the committed metadata

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical - P2
    • 3.4.17, 3.6.7, 4.0.1, 4.1.2
    • Affects Version/s: 3.4.16, 3.6.6, 4.0.0, 4.1.1
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6, v3.4
    • Sharding 2018-07-30
    • 0
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The chunk migration logic uses the CatalogCache to refresh the metadata after issuing the commit against the config server. SERVER-33954 uncovered that the catalog cache's "WithRefresh" methods are not causally consistent and because of this, it is possible that a refresh after chunk migration commit could join a concurrent refresh and not see its own changes.

      This should be backported together with SERVER-36132.

              Assignee:
              Kaloian Manassiev
              Reporter:
              Kaloian Manassiev
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: