Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1675

Threads stuck in FlowControl.decrementIfEnoughCredits

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.5
    • 3.4
    • None
    • Workaround Exists
    • Hide

      It appears that setting MFC and UFC max_credits to 10M or removing these protocols at all is a workaround for this issue.

      Show
      It appears that setting MFC and UFC max_credits to 10M or removing these protocols at all is a workaround for this issue.

    Description

      I have recently observed a repeated situation where many (or all) threads have been stuck waiting for credits in FlowControl protocol.

      The credit request was not handled on the other node as this is non-oob message and some (actually many of them - cause unknown) messages before the request have been lost - therefore the request was waiting for them to be re-sent.

      However, these have not been re-sent properly as the retransmission request was not received - all OOB threads were stuck in the FlowControl protocol as these handled some other request and tried to send a response - but the response could not be sent until FlowControl gets the credits.

      The probability of such situation could be lowered by tagging the credit request to be OOB - then it would be handled immediately. If the credit replenish message would then be processed in regular OOB pool, this could get already depleted by many requests, but setting up the internal thread pool would solve the problem.

      Other consideration would be to allow releasing thread from FlowControl (let it send the message even without credits) if it waits there for too long.

      Workaround

      It appears that setting MFC and UFC max_credits to 10M or removing these protocols at all is a workaround for this issue.

      Attachments

        1. jgroups-udp-radim.xml
          4 kB
        2. RemoteGetStressTest.java
          7 kB
        3. UPerf2.java
          31 kB

        Issue Links

          Activity

            People

              rhn-engineering-bban Bela Ban
              rvansa1@redhat.com Radim Vansa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: