Insert after refine can lead to unsafe access to the chunk manager

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • ALL
    • Sharding EMEA 2022-08-08, Sharding EMEA 2022-08-22, Sharding EMEA 2022-09-05, Sharding EMEA 2022-09-19, Sharding EMEA 2022-10-03, Sharding EMEA 2022-10-17, Sharding EMEA 2022-10-31
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      CollectionMetadata offers a method to get a weak reference to the chunk manager it points to.

      It has been observed a case in which this led to the chunk manager being cleared up while still used by an op observer.

      The flow that led to hit the error - right after a refineCollectionShardKey was the following:

            Assignee:
            Antonio Fuschetto
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: