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

CSRS stepdown during rename may leave orphned entries in `config.chunks`

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-07-11, Sharding EMEA 2022-07-25
    • 17

      [DISCLAIMER] This is not a correctness bug, it only results in some garbage being left in the config.chunks collection.

      SERVER-55115 changed the order to remove metadata for a specific collection from the config server: first the collection entry, then the chunks entries referring the dropped uuid. If a stepdown happens on the config server in between those steps, then it's possible to leave orphaned chunk entries around.

      It has been observed this incriminated flow in a build failure:

      The first command sent to the CSRS resulted in calling renameShardedMetadata that tried to remove collection and chunks entries, but only succeeded to remove the collection entry while the stepdown happened when trying to delete chunks.

      As a consequence, the second command invocation on the CSRS followed the same flow but didn't try to remove chunk entries because the collection entry was not found.

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: