You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Torsten Mielke (Created) (JIRA)" <ji...@apache.org> on 2012/03/02 12:44:56 UTC

[jira] [Created] (AMQ-3754) intermittent failure of org.apache.activemq.transport.vm.VmTransportNetworkBrokerTest

intermittent failure of org.apache.activemq.transport.vm.VmTransportNetworkBrokerTest
-------------------------------------------------------------------------------------

                 Key: AMQ-3754
                 URL: https://issues.apache.org/jira/browse/AMQ-3754
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.5.1
            Reporter: Torsten Mielke
            Assignee: Torsten Mielke
             Fix For: 5.6.0


The JUnit test org.apache.activemq.transport.vm.VmTransportNetworkBrokerTest fails most of the time on a Mac OSX machine. 
The reason for the failure is that the test assumes the JVM itself will not create any additional threads at runtime. This however is a false assumption as on Mac OSX a daemon thread called "Poller SunPKCS11-Darwin" is created at some later point in time (after the test got kicked off already) under the main thread group. 

This extra but JVM internal thread makes the test fail on Mac OSX right now.
 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (AMQ-3754) intermittent failure of org.apache.activemq.transport.vm.VmTransportNetworkBrokerTest

Posted by "Torsten Mielke (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Torsten Mielke resolved AMQ-3754.
---------------------------------

    Resolution: Fixed
    
> intermittent failure of org.apache.activemq.transport.vm.VmTransportNetworkBrokerTest
> -------------------------------------------------------------------------------------
>
>                 Key: AMQ-3754
>                 URL: https://issues.apache.org/jira/browse/AMQ-3754
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>            Assignee: Torsten Mielke
>              Labels: test, test-fail
>             Fix For: 5.6.0
>
>         Attachments: AMQ-3754.patch
>
>
> The JUnit test org.apache.activemq.transport.vm.VmTransportNetworkBrokerTest fails most of the time on a Mac OSX machine. 
> The reason for the failure is that the test assumes the JVM itself will not create any additional threads at runtime. This however is a false assumption as on Mac OSX a daemon thread called "Poller SunPKCS11-Darwin" is created at some later point in time (after the test got kicked off already) under the main thread group. 
> This extra but JVM internal thread makes the test fail on Mac OSX right now.
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3754) intermittent failure of org.apache.activemq.transport.vm.VmTransportNetworkBrokerTest

Posted by "Torsten Mielke (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220908#comment-13220908 ] 

Torsten Mielke commented on AMQ-3754:
-------------------------------------

Fixed in revision #1296194.
                
> intermittent failure of org.apache.activemq.transport.vm.VmTransportNetworkBrokerTest
> -------------------------------------------------------------------------------------
>
>                 Key: AMQ-3754
>                 URL: https://issues.apache.org/jira/browse/AMQ-3754
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>            Assignee: Torsten Mielke
>              Labels: test, test-fail
>             Fix For: 5.6.0
>
>         Attachments: AMQ-3754.patch
>
>
> The JUnit test org.apache.activemq.transport.vm.VmTransportNetworkBrokerTest fails most of the time on a Mac OSX machine. 
> The reason for the failure is that the test assumes the JVM itself will not create any additional threads at runtime. This however is a false assumption as on Mac OSX a daemon thread called "Poller SunPKCS11-Darwin" is created at some later point in time (after the test got kicked off already) under the main thread group. 
> This extra but JVM internal thread makes the test fail on Mac OSX right now.
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AMQ-3754) intermittent failure of org.apache.activemq.transport.vm.VmTransportNetworkBrokerTest

Posted by "Torsten Mielke (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Torsten Mielke updated AMQ-3754:
--------------------------------

    Attachment: AMQ-3754.patch

Attaching a fix which updates the JUnit test. 
Initially the test was simply taking the thread count at the end of the test run and comparing it against the thread count in the beginning. The test failed if these counts did not match.

The new version now takes a list of all threads under the same main thread group at the end of the test run and removes any daemon threads from that list. 
This will filter out any additional threads created by the JVM. 
Then the count of that thread list is taken and compared against the initial thread count.
                
> intermittent failure of org.apache.activemq.transport.vm.VmTransportNetworkBrokerTest
> -------------------------------------------------------------------------------------
>
>                 Key: AMQ-3754
>                 URL: https://issues.apache.org/jira/browse/AMQ-3754
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>            Assignee: Torsten Mielke
>              Labels: test, test-fail
>             Fix For: 5.6.0
>
>         Attachments: AMQ-3754.patch
>
>
> The JUnit test org.apache.activemq.transport.vm.VmTransportNetworkBrokerTest fails most of the time on a Mac OSX machine. 
> The reason for the failure is that the test assumes the JVM itself will not create any additional threads at runtime. This however is a false assumption as on Mac OSX a daemon thread called "Poller SunPKCS11-Darwin" is created at some later point in time (after the test got kicked off already) under the main thread group. 
> This extra but JVM internal thread makes the test fail on Mac OSX right now.
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira