jstest + design: heartbeat thread accounting must be bounded under asymmetric partition

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Companion artifact for SERVER-122751 (heartbeat thread leak on asymmetric partition).

      Pinned to `_doMemberHeartbeat` + `_scheduleHeartbeatReconfigResponse` enqueueing into `_heartbeatHandles` per interval without per-target cap. Fix: cap of 2 in-flight handles per target. Uses `metrics.repl.heartBeat.maxSeenHandleQueueSize`.

      Files in worktree mongo-w4-21:

      • jstests/replsets/heartbeat_thread_no_leak_under_asymmetric_partition.js
      • src/mongo/db/repl/SERVER-122751-design.md

      Status: Draft.

            Assignee:
            Unassigned
            Reporter:
            Mehar Grewal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: