Use more appropriate container for queued heartbeat handles

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Solomon Lifshits
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: