You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rajith Attapattu (JIRA)" <ji...@apache.org> on 2011/02/08 01:26:57 UTC

[jira] Created: (QPID-3043) If a new session is created during failover, but before 'resume' is completed, the new session gets reattached again.

If a new session is created during failover, but before 'resume' is completed, the new session gets reattached again.
---------------------------------------------------------------------------------------------------------------------

                 Key: QPID-3043
                 URL: https://issues.apache.org/jira/browse/QPID-3043
             Project: Qpid
          Issue Type: Bug
    Affects Versions: 0.8, 0.7, 0.6
            Reporter: Rajith Attapattu
            Assignee: Rajith Attapattu
             Fix For: Future


This bug was discovered while investigating QPID-2994 

There exists a race condition, where if a session is created (after the connection is setup and is marked OPEN) but before the resume method (in Connection.java) is called, it results in the new session being reattached again. This could result in unnecessary duplication of messages. 


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Resolved: (QPID-3043) If a new session is created during failover, but before 'resume' is completed, the new session gets reattached again.

Posted by "Rajith Attapattu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajith Attapattu resolved QPID-3043.
------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Future)
                   0.10

The commit has been reviewed and was tested manually as part of a larger issue.

> If a new session is created during failover, but before 'resume' is completed, the new session gets reattached again.
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-3043
>                 URL: https://issues.apache.org/jira/browse/QPID-3043
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.6, 0.7, 0.8
>            Reporter: Rajith Attapattu
>            Assignee: Rajith Attapattu
>             Fix For: 0.10
>
>
> This bug was discovered while investigating QPID-2994 
> There exists a race condition, where if a session is created (after the connection is setup and is marked OPEN) but before the resume method (in Connection.java) is called, it results in the new session being reattached again. This could result in unnecessary duplication of messages. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-3043) If a new session is created during failover, but before 'resume' is completed, the new session gets reattached again.

Posted by "Andrew Kennedy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993550#comment-12993550 ] 

Andrew Kennedy commented on QPID-3043:
--------------------------------------

The " connectionLost" field is scoped as "private static", so it is shared among all connections on the same JVM. This will lead to undesirable behaviour if only one of those connections is lost, and should probably be instance local. instead.

> If a new session is created during failover, but before 'resume' is completed, the new session gets reattached again.
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-3043
>                 URL: https://issues.apache.org/jira/browse/QPID-3043
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.6, 0.7, 0.8
>            Reporter: Rajith Attapattu
>            Assignee: Rajith Attapattu
>             Fix For: Future
>
>
> This bug was discovered while investigating QPID-2994 
> There exists a race condition, where if a session is created (after the connection is setup and is marked OPEN) but before the resume method (in Connection.java) is called, it results in the new session being reattached again. This could result in unnecessary duplication of messages. 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-3043) If a new session is created during failover, but before 'resume' is completed, the new session gets reattached again.

Posted by "Rajith Attapattu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993562#comment-12993562 ] 

Rajith Attapattu commented on QPID-3043:
----------------------------------------

Fixed the error. I had accidentally marked the connectionLost variable as static.

> If a new session is created during failover, but before 'resume' is completed, the new session gets reattached again.
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-3043
>                 URL: https://issues.apache.org/jira/browse/QPID-3043
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.6, 0.7, 0.8
>            Reporter: Rajith Attapattu
>            Assignee: Rajith Attapattu
>             Fix For: Future
>
>
> This bug was discovered while investigating QPID-2994 
> There exists a race condition, where if a session is created (after the connection is setup and is marked OPEN) but before the resume method (in Connection.java) is called, it results in the new session being reattached again. This could result in unnecessary duplication of messages. 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org