You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Rob Lugt (JIRA)" <ji...@apache.org> on 2006/10/16 10:54:16 UTC

[jira] Created: (AMQ-980) lastImageSubscriptionRecoveryPolicy does not work with wildcards

lastImageSubscriptionRecoveryPolicy does not work with wildcards
----------------------------------------------------------------

                 Key: AMQ-980
                 URL: https://issues.apache.org/activemq/browse/AMQ-980
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 4.0.2
         Environment: Windows, JDK 1.5
            Reporter: Rob Lugt


The lastImageSubscriptionRecoveryPolicy does not appear to work with wildcards.

In the following example, a new consumer only receives one message for the topics covered by the wildcard instead of receiving one message for each topic.
 
config file:- 
          <policyEntry topic="PRICES.>"> 
            <subscriptionRecoveryPolicy> 
              <lastImageSubscriptionRecoveryPolicy/> 
            </subscriptionRecoveryPolicy> 
          </policyEntry> 
 
consumer subscription:- 
          GetTopic("PRICES.>?consumer.retrocactive=true"); 



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (AMQ-980) lastImageSubscriptionRecoveryPolicy does not work with wildcards

Posted by "james strachan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-980?page=comments#action_37305 ] 
            
james strachan commented on AMQ-980:
------------------------------------

Now that AMQ-999 is resolved, is this issue now fixed?

> lastImageSubscriptionRecoveryPolicy does not work with wildcards
> ----------------------------------------------------------------
>
>                 Key: AMQ-980
>                 URL: https://issues.apache.org/activemq/browse/AMQ-980
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: NMS (C# client)
>    Affects Versions: 4.0.2
>         Environment: Windows, JDK 1.5
>            Reporter: Rob Lugt
>             Fix For: 4.1
>
>
> The lastImageSubscriptionRecoveryPolicy does not appear to work with wildcards.
> In the following example, a new consumer only receives one message for the topics covered by the wildcard instead of receiving one message for each topic.
>  
> config file:- 
>           <policyEntry topic="PRICES.>"> 
>             <subscriptionRecoveryPolicy> 
>               <lastImageSubscriptionRecoveryPolicy/> 
>             </subscriptionRecoveryPolicy> 
>           </policyEntry> 
>  
> consumer subscription:- 
>           GetTopic("PRICES.>?consumer.retrocactive=true"); 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (AMQ-980) lastImageSubscriptionRecoveryPolicy does not work with wildcards

Posted by "Rob Lugt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-980?page=all ]

Rob Lugt updated AMQ-980:
-------------------------

    Component/s: NMS (C# client)
                     (was: Broker)

> lastImageSubscriptionRecoveryPolicy does not work with wildcards
> ----------------------------------------------------------------
>
>                 Key: AMQ-980
>                 URL: https://issues.apache.org/activemq/browse/AMQ-980
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: NMS (C# client)
>    Affects Versions: 4.0.2
>         Environment: Windows, JDK 1.5
>            Reporter: Rob Lugt
>             Fix For: 4.1
>
>
> The lastImageSubscriptionRecoveryPolicy does not appear to work with wildcards.
> In the following example, a new consumer only receives one message for the topics covered by the wildcard instead of receiving one message for each topic.
>  
> config file:- 
>           <policyEntry topic="PRICES.>"> 
>             <subscriptionRecoveryPolicy> 
>               <lastImageSubscriptionRecoveryPolicy/> 
>             </subscriptionRecoveryPolicy> 
>           </policyEntry> 
>  
> consumer subscription:- 
>           GetTopic("PRICES.>?consumer.retrocactive=true"); 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (AMQ-980) lastImageSubscriptionRecoveryPolicy does not work with wildcards

Posted by "Rob Lugt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-980?page=all ]

Rob Lugt resolved AMQ-980.
--------------------------

    Resolution: Fixed

Fixed by AMQ-999.

> lastImageSubscriptionRecoveryPolicy does not work with wildcards
> ----------------------------------------------------------------
>
>                 Key: AMQ-980
>                 URL: https://issues.apache.org/activemq/browse/AMQ-980
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: NMS (C# client)
>    Affects Versions: 4.0.2
>         Environment: Windows, JDK 1.5
>            Reporter: Rob Lugt
>             Fix For: 4.1
>
>
> The lastImageSubscriptionRecoveryPolicy does not appear to work with wildcards.
> In the following example, a new consumer only receives one message for the topics covered by the wildcard instead of receiving one message for each topic.
>  
> config file:- 
>           <policyEntry topic="PRICES.>"> 
>             <subscriptionRecoveryPolicy> 
>               <lastImageSubscriptionRecoveryPolicy/> 
>             </subscriptionRecoveryPolicy> 
>           </policyEntry> 
>  
> consumer subscription:- 
>           GetTopic("PRICES.>?consumer.retrocactive=true"); 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (AMQ-980) lastImageSubscriptionRecoveryPolicy does not work with wildcards

Posted by "james strachan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-980?page=comments#action_37248 ] 
            
james strachan commented on AMQ-980:
------------------------------------

Ah cool - thanks for the analysis Rob. As soon as we've the '1 thread per session' change in ActiveMQ.Net we can retest that things are working fine

> lastImageSubscriptionRecoveryPolicy does not work with wildcards
> ----------------------------------------------------------------
>
>                 Key: AMQ-980
>                 URL: https://issues.apache.org/activemq/browse/AMQ-980
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: NMS (C# client)
>    Affects Versions: 4.0.2
>         Environment: Windows, JDK 1.5
>            Reporter: Rob Lugt
>             Fix For: 4.1
>
>
> The lastImageSubscriptionRecoveryPolicy does not appear to work with wildcards.
> In the following example, a new consumer only receives one message for the topics covered by the wildcard instead of receiving one message for each topic.
>  
> config file:- 
>           <policyEntry topic="PRICES.>"> 
>             <subscriptionRecoveryPolicy> 
>               <lastImageSubscriptionRecoveryPolicy/> 
>             </subscriptionRecoveryPolicy> 
>           </policyEntry> 
>  
> consumer subscription:- 
>           GetTopic("PRICES.>?consumer.retrocactive=true"); 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Reopened: (AMQ-980) lastImageSubscriptionRecoveryPolicy does not work with wildcards

Posted by "Rob Lugt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-980?page=all ]

Rob Lugt reopened AMQ-980:
--------------------------

             
It transpires this is a bug/feature in the .Net client.

The broker correctly dispatches the last image messages to the client, but the client receives them before the call to Session.CreateConsumer() completes, so it has not yet had a chance to register its listener.  The messages are queued, and when the client does eventually register its listener, it starts to dispatch the queued messages. However only one (or perhaps several) messages are dispatched due to a "fix" we put in recently to prevent thread starvation.

This problem will be rectified if we have a dedicated dispatching thread per session.

> lastImageSubscriptionRecoveryPolicy does not work with wildcards
> ----------------------------------------------------------------
>
>                 Key: AMQ-980
>                 URL: https://issues.apache.org/activemq/browse/AMQ-980
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: NMS (C# client)
>    Affects Versions: 4.0.2
>         Environment: Windows, JDK 1.5
>            Reporter: Rob Lugt
>             Fix For: 4.1
>
>
> The lastImageSubscriptionRecoveryPolicy does not appear to work with wildcards.
> In the following example, a new consumer only receives one message for the topics covered by the wildcard instead of receiving one message for each topic.
>  
> config file:- 
>           <policyEntry topic="PRICES.>"> 
>             <subscriptionRecoveryPolicy> 
>               <lastImageSubscriptionRecoveryPolicy/> 
>             </subscriptionRecoveryPolicy> 
>           </policyEntry> 
>  
> consumer subscription:- 
>           GetTopic("PRICES.>?consumer.retrocactive=true"); 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (AMQ-980) lastImageSubscriptionRecoveryPolicy does not work with wildcards

Posted by "james strachan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-980?page=all ]

james strachan resolved AMQ-980.
--------------------------------

    Fix Version/s: 4.1
       Resolution: Cannot Reproduce

I've created a JUnit test case to try reproduce the issue.  I've added the test case RetroactiveConsumerTestWithLastImagePolicyWithWildcardTest (in the activemq-core module)

which creates a broker without persistence, sends 20 messages to different topics, then creates a retroactive consumer using a wildcard and it receives all 20 messages on each topic.

Am wondering how to reproduce your issue - any ideas? Does this issue only show itself in ActiveMQ.Net?

> lastImageSubscriptionRecoveryPolicy does not work with wildcards
> ----------------------------------------------------------------
>
>                 Key: AMQ-980
>                 URL: https://issues.apache.org/activemq/browse/AMQ-980
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.0.2
>         Environment: Windows, JDK 1.5
>            Reporter: Rob Lugt
>             Fix For: 4.1
>
>
> The lastImageSubscriptionRecoveryPolicy does not appear to work with wildcards.
> In the following example, a new consumer only receives one message for the topics covered by the wildcard instead of receiving one message for each topic.
>  
> config file:- 
>           <policyEntry topic="PRICES.>"> 
>             <subscriptionRecoveryPolicy> 
>               <lastImageSubscriptionRecoveryPolicy/> 
>             </subscriptionRecoveryPolicy> 
>           </policyEntry> 
>  
> consumer subscription:- 
>           GetTopic("PRICES.>?consumer.retrocactive=true"); 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (AMQ-980) lastImageSubscriptionRecoveryPolicy does not work with wildcards

Posted by "james strachan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-980?page=comments#action_37231 ] 
            
james strachan commented on AMQ-980:
------------------------------------

BTW I marked this resolved as a 'Cannot Reproduce' for now - if you can figure out how to reproduce we can reopen it

> lastImageSubscriptionRecoveryPolicy does not work with wildcards
> ----------------------------------------------------------------
>
>                 Key: AMQ-980
>                 URL: https://issues.apache.org/activemq/browse/AMQ-980
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.0.2
>         Environment: Windows, JDK 1.5
>            Reporter: Rob Lugt
>             Fix For: 4.1
>
>
> The lastImageSubscriptionRecoveryPolicy does not appear to work with wildcards.
> In the following example, a new consumer only receives one message for the topics covered by the wildcard instead of receiving one message for each topic.
>  
> config file:- 
>           <policyEntry topic="PRICES.>"> 
>             <subscriptionRecoveryPolicy> 
>               <lastImageSubscriptionRecoveryPolicy/> 
>             </subscriptionRecoveryPolicy> 
>           </policyEntry> 
>  
> consumer subscription:- 
>           GetTopic("PRICES.>?consumer.retrocactive=true"); 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira