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

Use more appropriate container for queued heartbeat handles

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • Repl 2024-11-11, Repl 2024-11-25
    • 200

      Currently enqueued heartbeat handles are stored in std::vector which requires a linear scan of it to erase a handle being dequeued(under mutex). Changing it to std::unordered_map would optimize it to a constant time operation. Max seen value of handle queue size is a good metric to be exposed to server status.

            Assignee:
            solomon.lifshits@mongodb.com Solomon Lifshits
            Reporter:
            solomon.lifshits@mongodb.com Solomon Lifshits
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: