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

Do not reschedule range deletion task when numDeleted < numDocsToRemovePerBatch

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v5.2, v5.0, v4.4
    • Sharding EMEA 2021-12-13

    Description

      Currently, when the last documents in an orphan range have been deleted, the range deletion task gets re-enqueued and re-executed because of this condition. The next execution for the range simply finds no documents, and the range deletion task's document gets deleted.

      As a result, if there are thousands of range deletion tasks, it's difficult to monitor the progression because hours/days could pass from the moment an orphaned range is cleared up and the moment its range deletion task's document is deleted.

      Attachments

        Activity

          People

            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: