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

Set `whenToClean` to `now` when marking range deletion task as processing

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.1, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • v6.0
    • Sharding EMEA 2022-08-08

      A range deletion task is marked as processing right before the range-deleter starts deleting documents from it. When it gets labeled as such, it also indirectly means that the timeout before triggering the cleanup had been honored.

      Given that on step-up the whenToClean field is used to decide when to schedule a task, it makes no sense to delay the scheduling of a task marked as processing since it is ensured that the timeout had been already respected.

      Purpose of this ticket is to enhance this update in order to also change the whenToClean field to now.

            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            0 Vote for this issue
            2 Start watching this issue