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

High CPU usage in range deleter service

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

      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 Unassigned
            Reporter:
            aitor.esteve@mongodb.com Aitor Esteve Alvarado
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: