High CPU usage in range deleter service

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 5.0.0, 6.0.0, 7.0.0, 8.0.0
    • Component/s: None
    • Cluster Scalability
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If the range deleter encounters a task to delete a range of a collection with a hashed shard key but without a hashed shard key index, it will eventually skip it and reinsert it at the end of the queue. If that is the only task remaining in the queue, the main loop of the range deleter effectively degenerates to a tight loop where it is skipping and reinserting tasks to the queue as fast as the CPU allows, hogging the CPU unnecessarily.

              Assignee:
              Unassigned
              Reporter:
              Aitor Esteve Alvarado
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: