Calls to ServerDiscoveryMonitor::requestImmediateCheck should be throttled

XMLWordPrintableJSON

    • Cluster Scalability
    • ALL
    • 6
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      It's possible that ServerDiscoveryMonitor::requestImmediateCheck can be called so frequently each subsequent request can cancel the previous request before it has a chance to run, leading to none of them ever succeeding.

      This flag is supposed to short circuit rescheduling when there's already an outstanding 'hello' request, but that doesn't get set until after the request is actually scheduled, which can happen at a delay from the time requestImmediateCheck is called, so that doesn't help us in this case.

      Note that this applies to both 4.4 and master so we should make sure any fix is backportable.

       

      Acceptance criteria: 

      Unit test to demonstrate the problem and add throttle to fix the test. 

            Assignee:
            Unassigned
            Reporter:
            Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: