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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • 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

    Description

      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:

      Attachments

        Activity

          People

            antonio.fuschetto@mongodb.com Antonio Fuschetto
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: