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

[v6.0] range deleter gets stuck when a collection is re-created as a view or timeseries

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.0.0, 6.0.0
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2025-02-17
    • 1

      User impact
      The range deleter may indefinitely get stuck if a collection with range deletion tasks is dropped and recreated as a timeseries or view.

      Affected versions
      This issue does not occur in +6.2 because, since SERVER-65016, dropCollection removes range deletion tasks referring the collection being dropped.

      Description
      When a moveChunk operation occurs, we register a task on the range deleter to eventually remove orphan documents within that range. During the execution of that task, the range deleter process the task by first performing an AutoGetCollection. Then, checks whether the collection's UUID matches the one recorded when the task was registered. If the UUIDs do not match, the task is removed from the list of scheduled range deletions.

      However, if the collection has become a view by the time the task is being executed, the AutoGetCollection will fail with a CommandNotSupportedOnView error, without arriving at the UUID checks. This error is treated as retriable for the range deleter, which results in indefinitely retrying the task.

            Assignee:
            meryama.nadim@mongodb.com Meryama Nadim
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: