[jboss-jira] [JBoss JIRA] (JGRP-1668) Threads are blocked with small send_queue_size

Igor Mazur (JIRA) jira-events at lists.jboss.org
Wed Jul 24 19:02:26 EDT 2013


Igor Mazur created JGRP-1668:
--------------------------------

             Summary: Threads are blocked with small send_queue_size
                 Key: JGRP-1668
                 URL: https://issues.jboss.org/browse/JGRP-1668
             Project: JGroups
          Issue Type: Bug
    Affects Versions: 3.3.3
            Reporter: Igor Mazur
            Assignee: Bela Ban


Hi

I've found yet another problem with blocking queue in TCP. I tested it with TCP behind RELAY2 - but I suppose when we are using TCP without RELAY2 problem will be same.

It's easy to reproduce - just set send_queue_size to small value (I setted it to 2) and break connection between nodes (I used two VM and switched off network card on one of them). In our production it is reproduced with larger queue size ~ 2000. 

This queue is blocking on put and will not released because thread that work in Sender.run method will be interrupted when connection is broken, and no one will take messages from this queue instance. When connection will be restored one more instance of Sender will be created. But it doesn't release threads that stuck with put().

I tested this in 3.3 branch. May be something simmilar will be in master - but I have not tested it there yet.

I did pull request https://github.com/belaban/JGroups/pull/89

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list