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

Range deletion task submission via OpObserver is racy

    • Fully Compatible
    • ALL
    • v4.4
    • Sharding 2020-04-06
    • 32

      When we submit ranges for deletion on recipient shards, we submit them through the onUpdate OpObserver when an update is received to remove the 'pending' flag from a document in config.rangeDeletions. This submits an async task which will eventually cause the range to be deleted. The problem is that if the deletion task reaches this line before the commit of the update that triggered it, then it may find that the update has not yet occurred, leading this task to be abandoned. This will lead to orphaned documents until failover, a consequence of which is that incoming migrations for that range will be blocked.

            Assignee:
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Reporter:
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: