Qpid
  1. Qpid
  2. QPID-4503

[Java broker] Producer transaction timeout detection feature may log spurious open/idle alerts and close client connections/sessions without good cause

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.12, 0.14, 0.16, 0.18, 0.20
    • Fix Version/s: 0.20
    • Component/s: Java Broker
    • Labels:
      None

      Description

      There is a race condition in AMQChannel#checkTransactionStatus (and ServerSession#checkTransactionStatus) which can lead to spurious open/idle alerts and needlessly closed client connections (0-8..0-9-1) or client sessions (0-10).

      When the defect manifests, the alert generated incorrectly identifies the transaction as being open since Jan 1, 1970. eg. 1,355,281,641,112 ms

      e.g.

      [con:11(guest@/127.0.0.1:47276/test)/ch:2] CHN-1007 : Open Transaction : 1,355,281,641,112 ms
      

      This defect affects only users who have configured the transaction timeout feature (as described http://qpid.apache.org/books/trunk/AMQP-Messaging-Broker-Java-Book/html/Java-Broker-Runtime-Producer-Transaction-Timeout.html).

        Activity

        Rob Godfrey made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Robbie Gemmell made changes -
        Summary Producer transaction timeout detection feature may produce spurious open/idle alerts and close client connections/sessions without good cause [Java broker] Producer transaction timeout detection feature may log spurious open/idle alerts and close client connections/sessions without good cause
        Robbie Gemmell made changes -
        Fix Version/s 0.20 [ 12323548 ]
        Fix Version/s 0.21 [ 12323549 ]
        Philip Harvey made changes -
        Status Ready To Review [ 10006 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Keith Wall made changes -
        Assignee Keith Wall [ k-wall ] Philip Harvey [ philharveyonline ]
        Keith Wall made changes -
        Status In Progress [ 3 ] Ready To Review [ 10006 ]
        Keith Wall made changes -
        Status Reopened [ 4 ] In Progress [ 3 ]
        Keith Wall made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Robbie Gemmell [ gemmellr ] Keith Wall [ k-wall ]
        Keith Wall made changes -
        Summary Producer transaction timeout detection feature may produce suprious open/idle alerts and close client connections/sessions without good cause Producer transaction timeout detection feature may produce spurious open/idle alerts and close client connections/sessions without good cause
        Keith Wall made changes -
        Description There is a race condition in AMQChannel#checkTransactionStatus (and ServerSession#checkTransactionStatus) which can lead to spurious open/idle alerts and incorrectly closed client connections (0-8..0-9-1) or client sessions (0-10).

        When the defect manifests, the alert generated incorrectly identifies the transaction as being open since Jan 1, 1970. eg. 1,355,281,641,112 ms

        e.g.

        {noformat}
        [con:11(guest@/127.0.0.1:47276/test)/ch:2] CHN-1007 : Open Transaction : 1,355,281,641,112 ms
        {noformat}

        This defect affects only users who have configured the transaction timeout feature (as described http://qpid.apache.org/books/trunk/AMQP-Messaging-Broker-Java-Book/html/Java-Broker-Runtime-Producer-Transaction-Timeout.html).

        There is a race condition in AMQChannel#checkTransactionStatus (and ServerSession#checkTransactionStatus) which can lead to spurious open/idle alerts and needlessly closed client connections (0-8..0-9-1) or client sessions (0-10).

        When the defect manifests, the alert generated incorrectly identifies the transaction as being open since Jan 1, 1970. eg. 1,355,281,641,112 ms

        e.g.

        {noformat}
        [con:11(guest@/127.0.0.1:47276/test)/ch:2] CHN-1007 : Open Transaction : 1,355,281,641,112 ms
        {noformat}

        This defect affects only users who have configured the transaction timeout feature (as described http://qpid.apache.org/books/trunk/AMQP-Messaging-Broker-Java-Book/html/Java-Broker-Runtime-Producer-Transaction-Timeout.html).

        Robbie Gemmell made changes -
        Status Ready To Review [ 10006 ] Resolved [ 5 ]
        Fix Version/s 0.21 [ 12323549 ]
        Resolution Fixed [ 1 ]
        Keith Wall made changes -
        Assignee Keith Wall [ k-wall ] Robbie Gemmell [ gemmellr ]
        Keith Wall made changes -
        Status In Progress [ 3 ] Ready To Review [ 10006 ]
        Keith Wall made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Keith Wall made changes -
        Assignee Keith Wall [ k-wall ]
        Keith Wall made changes -
        Summary Producer transaction timeout detection feature may produce suprious open/idle alerts and close client connections without good cause Producer transaction timeout detection feature may produce suprious open/idle alerts and close client connections/sessions without good cause
        Keith Wall made changes -
        Attachment QPID-4503_repro.tar.bz2 [ 12560963 ]
        Keith Wall made changes -
        Description There is a race condition in AMQChannel#checkTransactionStatus (and ServerSession#checkTransactionStatus) which can lead to spurious open/idle alerts and incorrectly closed client connections (0-8..0-9-1) or client sessions (0-10).

        When the defect manifests, the alert generated incorrectly identifies the transaction as being open since Jan 1, 1970. eg. 1,355,281,641,112 ms

        e.g.

        {noformat}
        [con:11(guest@/127.0.0.1:47276/test)/ch:2] CHN-1007 : Open Transaction : 1,355,281,641,112 ms
        {noformat}

        There is a race condition in AMQChannel#checkTransactionStatus (and ServerSession#checkTransactionStatus) which can lead to spurious open/idle alerts and incorrectly closed client connections (0-8..0-9-1) or client sessions (0-10).

        When the defect manifests, the alert generated incorrectly identifies the transaction as being open since Jan 1, 1970. eg. 1,355,281,641,112 ms

        e.g.

        {noformat}
        [con:11(guest@/127.0.0.1:47276/test)/ch:2] CHN-1007 : Open Transaction : 1,355,281,641,112 ms
        {noformat}

        This defect affects only users who have configured the transaction timeout feature (as described http://qpid.apache.org/books/trunk/AMQP-Messaging-Broker-Java-Book/html/Java-Broker-Runtime-Producer-Transaction-Timeout.html).

        Keith Wall made changes -
        Priority Minor [ 4 ] Major [ 3 ]
        Keith Wall made changes -
        Field Original Value New Value
        Affects Version/s 0.20 [ 12323548 ]
        Keith Wall created issue -

          People

          • Assignee:
            Philip Harvey
            Reporter:
            Keith Wall
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development