You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2009/03/09 15:26:39 UTC

[jira] Created: (AMQNET-150) Unit test failures in the Durable Subscruber test

Unit test failures in the Durable Subscruber test
-------------------------------------------------

                 Key: AMQNET-150
                 URL: https://issues.apache.org/activemq/browse/AMQNET-150
             Project: ActiveMQ .Net
          Issue Type: Bug
    Affects Versions: 1.0
         Environment: Windows .Net 3.5 and Mono 2.2  AMQ Broker v5.2
            Reporter: Timothy Bish
            Assignee: Jim Gomes
             Fix For: 1.1


The durable subscriber tests fails consistantly with the errors

Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(False):
Apache.NMS.ActiveMQ.BrokerException : javax.jms.InvalidDestinationException : No durable subscription exists for: ConsumerTestConsumerId

Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(True):
Apache.NMS.ActiveMQ.BrokerException : org.apache.activemq.kaha.RuntimeStoreException : java.io.IOException: Could not locate data file data-topic-acks--1


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


[jira] Commented: (AMQNET-150) Unit test failures in the Durable Subscruber test

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQNET-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51945#action_51945 ] 

Timothy Bish commented on AMQNET-150:
-------------------------------------

This seems to be more behaved now with all the latest changes, currently the VirtualTopic tests are causing most of the errors I see when I run the unit tests.

> Unit test failures in the Durable Subscruber test
> -------------------------------------------------
>
>                 Key: AMQNET-150
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-150
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Windows .Net 3.5 and Mono 2.2  AMQ Broker v5.2
>            Reporter: Timothy Bish
>            Assignee: Jim Gomes
>             Fix For: 1.1
>
>
> The durable subscriber tests fails consistantly with the errors
> Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(False):
> Apache.NMS.ActiveMQ.BrokerException : javax.jms.InvalidDestinationException : No durable subscription exists for: ConsumerTestConsumerId
> Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(True):
> Apache.NMS.ActiveMQ.BrokerException : org.apache.activemq.kaha.RuntimeStoreException : java.io.IOException: Could not locate data file data-topic-acks--1

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


[jira] Resolved: (AMQNET-150) Unit test failures in the Durable Subscruber test

Posted by "Jim Gomes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQNET-150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Gomes resolved AMQNET-150.
------------------------------

    Resolution: Fixed

> Unit test failures in the Durable Subscruber test
> -------------------------------------------------
>
>                 Key: AMQNET-150
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-150
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Windows .Net 3.5 and Mono 2.2  AMQ Broker v5.2
>            Reporter: Timothy Bish
>            Assignee: Jim Gomes
>             Fix For: 1.1
>
>
> The durable subscriber tests fails consistantly with the errors
> Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(False):
> Apache.NMS.ActiveMQ.BrokerException : javax.jms.InvalidDestinationException : No durable subscription exists for: ConsumerTestConsumerId
> Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(True):
> Apache.NMS.ActiveMQ.BrokerException : org.apache.activemq.kaha.RuntimeStoreException : java.io.IOException: Could not locate data file data-topic-acks--1

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


[jira] Commented: (AMQNET-150) Unit test failures in the Durable Subscruber test

Posted by "Jim Gomes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQNET-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52006#action_52006 ] 

Jim Gomes commented on AMQNET-150:
----------------------------------

The strange behavior you noted above regarding failure after running the virtual topic tests has to do with a couple of factors.  One is the naming of the test topics.  I think the broker was somehow treating them as virtual topics, rather than standard topics.  By renaming the test topics, this issue is avoided.  The other occasional problem that could be seen (but not reproduced reliably) is a race condition upon shutdown and start up of  the next test.  The broker did not have sufficient time to remove the durable subscriber connection before the next test would run and attempt to connect with the same subscriber ID.  This would cause intermittent failures.  This problem is solved by turning off async-close via a URI parameter.

I have made some major refactoring and expansions of the unit tests in these areas.  By investigating these issues, I found that the failover additions had actually broken regular URI parameter parsing.  I have since beefed up the URI unit tests to make sure that this can be detected.

There are currently unit tests failing, but these are reliably reproduced, and are new unit tests that I added.  The durable subscriber tests that are failing are the ones that are sending non-persistent messages.  If the test sends a persistent message, then it works.  This was a surprise failure to me, and there may be a logical reason for this.  I am checking in these changes now, and associating the check-in with this JIRA.  I would like to close this JIRA as resolved, and open new issues for the unit tests as needed.

Also, I have been getting much better unit test results when running against ActiveMQ 5.3-SNAPSHOT (very recent build) than with ActiveMQ 5.2.0.

> Unit test failures in the Durable Subscruber test
> -------------------------------------------------
>
>                 Key: AMQNET-150
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-150
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Windows .Net 3.5 and Mono 2.2  AMQ Broker v5.2
>            Reporter: Timothy Bish
>            Assignee: Jim Gomes
>             Fix For: 1.1
>
>
> The durable subscriber tests fails consistantly with the errors
> Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(False):
> Apache.NMS.ActiveMQ.BrokerException : javax.jms.InvalidDestinationException : No durable subscription exists for: ConsumerTestConsumerId
> Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(True):
> Apache.NMS.ActiveMQ.BrokerException : org.apache.activemq.kaha.RuntimeStoreException : java.io.IOException: Could not locate data file data-topic-acks--1

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


[jira] Commented: (AMQNET-150) Unit test failures in the Durable Subscruber test

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQNET-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51966#action_51966 ] 

Timothy Bish commented on AMQNET-150:
-------------------------------------

Another strange observation is that the Durable consumer tests seem to fail if run after the VirtualTopic tests, this is true for both .Net and CPP clients.

> Unit test failures in the Durable Subscruber test
> -------------------------------------------------
>
>                 Key: AMQNET-150
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-150
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Windows .Net 3.5 and Mono 2.2  AMQ Broker v5.2
>            Reporter: Timothy Bish
>            Assignee: Jim Gomes
>             Fix For: 1.1
>
>
> The durable subscriber tests fails consistantly with the errors
> Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(False):
> Apache.NMS.ActiveMQ.BrokerException : javax.jms.InvalidDestinationException : No durable subscription exists for: ConsumerTestConsumerId
> Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(True):
> Apache.NMS.ActiveMQ.BrokerException : org.apache.activemq.kaha.RuntimeStoreException : java.io.IOException: Could not locate data file data-topic-acks--1

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


[jira] Commented: (AMQNET-150) Unit test failures in the Durable Subscruber test

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQNET-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51980#action_51980 ] 

Timothy Bish commented on AMQNET-150:
-------------------------------------

I've been able to replicate most of the same behaviour with Java clients, so I'm not sure there is anything wrong with the .Net code in this instance.

> Unit test failures in the Durable Subscruber test
> -------------------------------------------------
>
>                 Key: AMQNET-150
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-150
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Windows .Net 3.5 and Mono 2.2  AMQ Broker v5.2
>            Reporter: Timothy Bish
>            Assignee: Jim Gomes
>             Fix For: 1.1
>
>
> The durable subscriber tests fails consistantly with the errors
> Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(False):
> Apache.NMS.ActiveMQ.BrokerException : javax.jms.InvalidDestinationException : No durable subscription exists for: ConsumerTestConsumerId
> Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(True):
> Apache.NMS.ActiveMQ.BrokerException : org.apache.activemq.kaha.RuntimeStoreException : java.io.IOException: Could not locate data file data-topic-acks--1

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


[jira] Commented: (AMQNET-150) Unit test failures in the Durable Subscruber test

Posted by "Jim Gomes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQNET-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51955#action_51955 ] 

Jim Gomes commented on AMQNET-150:
----------------------------------

The TestDurableConsumerSelectorChange() test will fail if it is run more than once with Persistent messages turned on.  The test will run just fine multiple times when NonPersistent messages are used.  When Persistent messages are used, the broker will display lots of the following errors starting with the second run of the test:

{noformat}
"ERROR RecoveryListenerAdapter        - Message id 8815cdfc-1a6d-4d71-ae18-ad841ee8fd44:1:1:2 could not be recovered from the data store - already dispatched"
{noformat}

After several runs of this test, I was able to get the following error from the broker:
{noformat}
ERROR DataManagerImpl                - Looking for key -1 but not found in fileMap: {1=data-topic-acks-1 number = 1 , length = 1156 refCount = -2}
ERROR ListContainerImpl              - Failed to get value for offset=51, key=(-1, -1, 0), value=(-1, -1, 0), previousItem=-1, nextItem=-1
java.io.IOException: Could not locate data file data-topic-acks--1
        at org.apache.activemq.kaha.impl.data.DataManagerImpl.getDataFile(DataManagerImpl.java:129)
        at org.apache.activemq.kaha.impl.data.SyncDataFileReader.readItem(SyncDataFileReader.java:65)
        at org.apache.activemq.kaha.impl.data.DataManagerImpl.readItem(DataManagerImpl.java:141)
        at org.apache.activemq.kaha.impl.container.ListContainerImpl.getValue(ListContainerImpl.java:856)
        at org.apache.activemq.kaha.impl.container.ListContainerImpl.get(ListContainerImpl.java:680)
        at org.apache.activemq.store.kahadaptor.KahaTopicReferenceStore.removeSubscriberMessageContainer(KahaTopicReferenceStore.java:332)
        at org.apache.activemq.store.kahadaptor.KahaTopicReferenceStore.deleteSubscription(KahaTopicReferenceStore.java:211)
        at org.apache.activemq.store.amq.AMQTopicMessageStore.deleteSubscription(AMQTopicMessageStore.java:183)
        at org.apache.activemq.broker.region.Topic.deleteSubscription(Topic.java:168)
        at org.apache.activemq.broker.region.TopicRegion.removeSubscription(TopicRegion.java:140)
        at org.apache.activemq.broker.region.RegionBroker.removeSubscription(RegionBroker.java:409)
        at org.apache.activemq.broker.BrokerFilter.removeSubscription(BrokerFilter.java:98)
        at org.apache.activemq.broker.BrokerFilter.removeSubscription(BrokerFilter.java:98)
        at org.apache.activemq.broker.BrokerFilter.removeSubscription(BrokerFilter.java:98)
        at org.apache.activemq.broker.MutableBrokerFilter.removeSubscription(MutableBrokerFilter.java:105)
        at org.apache.activemq.broker.TransportConnection.processRemoveSubscription(TransportConnection.java:339)
        at org.apache.activemq.command.RemoveSubscriptionInfo.visit(RemoveSubscriptionInfo.java:83)
        at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:305)
        at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179)
        at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)
        at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:143)
        at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:206)
        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:203)
        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:185)
        at java.lang.Thread.run(Unknown Source)
{noformat}

The client reports the following error:

{noformat}
ERROR: Transport Exception: Apache.NMS.ActiveMQ.BrokerException: org.apache.activemq.kaha.RuntimeStoreException : java.io.IOException: Could not locate data file data-topic-acks--1
{noformat}


> Unit test failures in the Durable Subscruber test
> -------------------------------------------------
>
>                 Key: AMQNET-150
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-150
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Windows .Net 3.5 and Mono 2.2  AMQ Broker v5.2
>            Reporter: Timothy Bish
>            Assignee: Jim Gomes
>             Fix For: 1.1
>
>
> The durable subscriber tests fails consistantly with the errors
> Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(False):
> Apache.NMS.ActiveMQ.BrokerException : javax.jms.InvalidDestinationException : No durable subscription exists for: ConsumerTestConsumerId
> Apache.NMS.Test.ConsumerTest.TestDurableConsumerSelectorChange(True):
> Apache.NMS.ActiveMQ.BrokerException : org.apache.activemq.kaha.RuntimeStoreException : java.io.IOException: Could not locate data file data-topic-acks--1

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