You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2009/08/05 08:49:14 UTC

[jira] Created: (GERONIMO-4784) Problem with ActiveMQ, two connections/sessions, and UserTransaction

Problem with ActiveMQ, two connections/sessions, and UserTransaction
--------------------------------------------------------------------

                 Key: GERONIMO-4784
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4784
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: ActiveMQ
    Affects Versions: 2.2
            Reporter: David Jencks
             Fix For: 2.2


This is probably a problem in activemq with dealing with multiple connection handles to the same managed connection and XA transactions controlled by UserTransaction.  It may be causing intermittent tck failures.  In any case I think the test ought to work.
Not sure how to reproduce this in AMQ standalone yet, so I'm adding a testsuite test to demonstrate the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GERONIMO-4784) Problem with ActiveMQ, two connections/sessions, and UserTransaction

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

David Jencks reassigned GERONIMO-4784:
--------------------------------------

    Assignee: David Jencks

> Problem with ActiveMQ, two connections/sessions, and UserTransaction
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-4784
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4784
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: ActiveMQ
>    Affects Versions: 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.2
>
>         Attachments: GERONIMO-4784-pom.patch, GERONIMO-4784-testng.patch, GERONIMO-4784-workaround.patch
>
>
> This is probably a problem in activemq with dealing with multiple connection handles to the same managed connection and XA transactions controlled by UserTransaction.  It may be causing intermittent tck failures.  In any case I think the test ought to work.
> Not sure how to reproduce this in AMQ standalone yet, so I'm adding a testsuite test to demonstrate the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4784) Problem with ActiveMQ, two connections/sessions, and UserTransaction

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741969#action_12741969 ] 

David Jencks commented on GERONIMO-4784:
----------------------------------------

The test is part of testsuite/enterprise-testsuite/jms-tests.

I've found a workaround but I think there is still an underlying problem.

To run the test:

in one console start a geronimo server
in another console cd testsuite/enterprise-testsuite/jms-tests
mvn clean install -Pstandalone

(the standalone profile starts the selenium server: this is not necessary if you edit the testng.xml file as below)

To run only the failing test patch the testng.xml file:

Index: jms-ear/src/test/resources/testng.xml
===================================================================
--- jms-ear/src/test/resources/testng.xml       (revision 802438)
+++ jms-ear/src/test/resources/testng.xml       (working copy)
@@ -24,12 +24,12 @@
 
 <suite name="Suite1" verbose="1">
     <test name="enterprise-testsuite.jms">
-        <packages>
-            <package name="org.apache.geronimo.testsuite.enterprise.jms"/>
-        </packages>
+        <!--<packages>-->
+            <!--<package name="org.apache.geronimo.testsuite.enterprise.jms"/>-->
+        <!--</packages>-->
         <!-- reverse what is commented out to just run the GERONIMO-4784 failing test -->
-        <!--<classes>-->
-            <!--<class name="org.apache.geronimo.testsuite.enterprise.jms.RollbackTest"/>-->
-        <!--</classes>-->
+        <classes>
+            <class name="org.apache.geronimo.testsuite.enterprise.jms.RollbackTest"/>
+        </classes>
     </test>
 </suite>


The workaround I've found that makes the pool use only one connection:

Index: jms-ear/src/main/filtered-resources/META-INF/geronimo-application.xml
===================================================================
--- jms-ear/src/main/filtered-resources/META-INF/geronimo-application.xml       (revision 802438)
+++ jms-ear/src/main/filtered-resources/META-INF/geronimo-application.xml       (working copy)
@@ -115,6 +115,7 @@
                             <connectionmanager>
                                 <xa-transaction>
                                     <transaction-caching/>
+                                    <thread-caching/>
                                 </xa-transaction>
                                 <single-pool>
                                     <max-size>20</max-size>

There seems to be a problem with undeploying apps that use mdbs: to avoid this so you can run the test more than once without a fresh g. server each time:

Index: jms-ear/pom.xml
===================================================================
--- jms-ear/pom.xml     (revision 802438)
+++ jms-ear/pom.xml     (working copy)
@@ -153,16 +153,16 @@
                         </configuration>
                     </execution>
 
-                    <execution>
-                        <id>undeploy</id>
-                        <phase>post-integration-test</phase>
-                        <goals>
-                            <goal>undeploy-module</goal>
-                        </goals>
-                        <configuration>
-                            <moduleId>${groupId}/${artifactId}/${version}/ear</moduleId>
-                        </configuration>
-                    </execution>
+                    <!--<execution>-->
+                        <!--<id>undeploy</id>-->
+                        <!--<phase>post-integration-test</phase>-->
+                        <!--<goals>-->
+                            <!--<goal>undeploy-module</goal>-->
+                        <!--</goals>-->
+                        <!--<configuration>-->
+                            <!--<moduleId>${groupId}/${artifactId}/${version}/ear</moduleId>-->
+                        <!--</configuration>-->
+                    <!--</execution>-->
                 </executions>
             </plugin>
         </plugins>




> Problem with ActiveMQ, two connections/sessions, and UserTransaction
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-4784
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4784
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: ActiveMQ
>    Affects Versions: 2.2
>            Reporter: David Jencks
>             Fix For: 2.2
>
>
> This is probably a problem in activemq with dealing with multiple connection handles to the same managed connection and XA transactions controlled by UserTransaction.  It may be causing intermittent tck failures.  In any case I think the test ought to work.
> Not sure how to reproduce this in AMQ standalone yet, so I'm adding a testsuite test to demonstrate the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4784) Problem with ActiveMQ, two connections/sessions, and UserTransaction

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

David Jencks updated GERONIMO-4784:
-----------------------------------

    Attachment: GERONIMO-4784-workaround.patch
                GERONIMO-4784-testng.patch
                GERONIMO-4784-pom.patch

These patches are in testsuite/enterprise-testsuite/jms-tests

pom and testng make it easier to run only the failing test and run it more than once without reinstalling geronimo.

workaround shows how using only one actual connection removes the failure.

> Problem with ActiveMQ, two connections/sessions, and UserTransaction
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-4784
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4784
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: ActiveMQ
>    Affects Versions: 2.2
>            Reporter: David Jencks
>             Fix For: 2.2
>
>         Attachments: GERONIMO-4784-pom.patch, GERONIMO-4784-testng.patch, GERONIMO-4784-workaround.patch
>
>
> This is probably a problem in activemq with dealing with multiple connection handles to the same managed connection and XA transactions controlled by UserTransaction.  It may be causing intermittent tck failures.  In any case I think the test ought to work.
> Not sure how to reproduce this in AMQ standalone yet, so I'm adding a testsuite test to demonstrate the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GERONIMO-4784) Problem with ActiveMQ, two connections/sessions, and UserTransaction

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

David Jencks closed GERONIMO-4784.
----------------------------------

    Resolution: Fixed

Fixed in amq, AMQ-2346, getting into 5.3.

> Problem with ActiveMQ, two connections/sessions, and UserTransaction
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-4784
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4784
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: ActiveMQ
>    Affects Versions: 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.2
>
>         Attachments: GERONIMO-4784-pom.patch, GERONIMO-4784-testng.patch, GERONIMO-4784-workaround.patch
>
>
> This is probably a problem in activemq with dealing with multiple connection handles to the same managed connection and XA transactions controlled by UserTransaction.  It may be causing intermittent tck failures.  In any case I think the test ought to work.
> Not sure how to reproduce this in AMQ standalone yet, so I'm adding a testsuite test to demonstrate the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.