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

Thread is blocking in Relayer forever

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.4
    • 3.3.3
    • None

      Hi,

      Probably i've found small issue.

      We had problem in next case: two ore more clusters connected via RELAY2. And when connection was broken for some time and site went from state UNKNOWN to DOWN and after that connection restored and site went UP - messages didnt pass between clusters at all.

      After some discovering of this problem I found that Relayer is blocking thread at putting message to blocking queue. And this thread will be blocked forever. Because it doesnt free this queue when site goes from state UNKNOWN to DOWN (method changeStatusToDown). Also this blocked thread is blocking of passing of any new messages through this relay - because on level NAKACK2 in method removeAndPassUp buf.getProcessing() was already setted up to true in blocked thread, and we hold this lock forever until relay goes down.

      I made pull request for this issue at github - https://github.com/belaban/JGroups/pull/87

              rhn-engineering-bban Bela Ban
              igormazur Igor Mazur (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: