You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Oscar Pernas (JIRA)" <ji...@apache.org> on 2012/09/28 12:05:07 UTC

[jira] [Created] (AMQCPP-428) setTimeToLive not working

Oscar Pernas created AMQCPP-428:
-----------------------------------

             Summary: setTimeToLive not working
                 Key: AMQCPP-428
                 URL: https://issues.apache.org/jira/browse/AMQCPP-428
             Project: ActiveMQ C++ Client
          Issue Type: Bug
          Components: CMS Impl, Transports
    Affects Versions: 3.4.4
         Environment: Debian linux wheezy
            Reporter: Oscar Pernas
            Assignee: Timothy Bish


Making tests, method setTimeToLive of message is not working and messages are never discarded by the broker. This can produce an out of memory in some situations.

Example code:
//sending message
producer->send(	textMessage,
		getPersistent(),
		activeMessageToSend.getPriority(),
		30000);



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQCPP-428) setTimeToLive not working

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

Timothy Bish commented on AMQCPP-428:
-------------------------------------

Recommend that you add more test cases to the existing integration tests for expiration to reproduce what you are seeing.
                
> setTimeToLive not working
> -------------------------
>
>                 Key: AMQCPP-428
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-428
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl, Transports
>    Affects Versions: 3.4.4
>         Environment: Debian linux wheezy
>            Reporter: Oscar Pernas
>            Assignee: Timothy Bish
>              Labels: discarded, expired, message,, timeToLive,
>
> Making tests, method setTimeToLive of message is not working and messages are never discarded by the broker. This can produce an out of memory in some situations.
> Example code:
> //sending message
> producer->send(	textMessage,
> 		getPersistent(),
> 		activeMessageToSend.getPriority(),
> 		30000);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQCPP-428) setTimeToLive not working

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

Timothy Bish commented on AMQCPP-428:
-------------------------------------

can you attach Java and C++ producer code for comparison?
                
> setTimeToLive not working
> -------------------------
>
>                 Key: AMQCPP-428
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-428
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl, Transports
>    Affects Versions: 3.4.4
>         Environment: Debian linux wheezy
>            Reporter: Oscar Pernas
>            Assignee: Timothy Bish
>              Labels: discarded, expired, message,, timeToLive,
>
> Making tests, method setTimeToLive of message is not working and messages are never discarded by the broker. This can produce an out of memory in some situations.
> Example code:
> //sending message
> producer->send(	textMessage,
> 		getPersistent(),
> 		activeMessageToSend.getPriority(),
> 		30000);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQCPP-428) setTimeToLive not working

Posted by "Oscar Pernas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQCPP-428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465886#comment-13465886 ] 

Oscar Pernas commented on AMQCPP-428:
-------------------------------------

Im using localhost for receiving and sending. I have a C++ durable Consumer disconnected. If I start a Java producer application with time to live, messages are discarded by the broker (new in 5.6) at the moment that it should, but with c++ producer, messages are never discarded by the broker. 
                
> setTimeToLive not working
> -------------------------
>
>                 Key: AMQCPP-428
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-428
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl, Transports
>    Affects Versions: 3.4.4
>         Environment: Debian linux wheezy
>            Reporter: Oscar Pernas
>            Assignee: Timothy Bish
>              Labels: discarded, expired, message,, timeToLive,
>
> Making tests, method setTimeToLive of message is not working and messages are never discarded by the broker. This can produce an out of memory in some situations.
> Example code:
> //sending message
> producer->send(	textMessage,
> 		getPersistent(),
> 		activeMessageToSend.getPriority(),
> 		30000);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQCPP-428) setTimeToLive not working

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

Timothy Bish commented on AMQCPP-428:
-------------------------------------

All the tests here show that expiration works as expected.  Are you sure the clocks on the machines are in sync?  
                
> setTimeToLive not working
> -------------------------
>
>                 Key: AMQCPP-428
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-428
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl, Transports
>    Affects Versions: 3.4.4
>         Environment: Debian linux wheezy
>            Reporter: Oscar Pernas
>            Assignee: Timothy Bish
>              Labels: discarded, expired, message,, timeToLive,
>
> Making tests, method setTimeToLive of message is not working and messages are never discarded by the broker. This can produce an out of memory in some situations.
> Example code:
> //sending message
> producer->send(	textMessage,
> 		getPersistent(),
> 		activeMessageToSend.getPriority(),
> 		30000);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (AMQCPP-428) setTimeToLive not working

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

Timothy Bish resolved AMQCPP-428.
---------------------------------

    Resolution: Cannot Reproduce

Tested here with modified simple_producer example and messages are expiring as expected. 
                
> setTimeToLive not working
> -------------------------
>
>                 Key: AMQCPP-428
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-428
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl, Transports
>    Affects Versions: 3.4.4
>         Environment: Debian linux wheezy
>            Reporter: Oscar Pernas
>            Assignee: Timothy Bish
>              Labels: discarded, expired, message,, timeToLive,
>
> Making tests, method setTimeToLive of message is not working and messages are never discarded by the broker. This can produce an out of memory in some situations.
> Example code:
> //sending message
> producer->send(	textMessage,
> 		getPersistent(),
> 		activeMessageToSend.getPriority(),
> 		30000);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQCPP-428) setTimeToLive not working

Posted by "Oscar Pernas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQCPP-428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476939#comment-13476939 ] 

Oscar Pernas commented on AMQCPP-428:
-------------------------------------

Sorry for my later response and for the poor details that I give you. Messages expires at the correct time, only if these messages are persistent, if not, messages are never discarded. 
                
> setTimeToLive not working
> -------------------------
>
>                 Key: AMQCPP-428
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-428
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl, Transports
>    Affects Versions: 3.4.4
>         Environment: Debian linux wheezy
>            Reporter: Oscar Pernas
>            Assignee: Timothy Bish
>              Labels: discarded, expired, message,, timeToLive,
>
> Making tests, method setTimeToLive of message is not working and messages are never discarded by the broker. This can produce an out of memory in some situations.
> Example code:
> //sending message
> producer->send(	textMessage,
> 		getPersistent(),
> 		activeMessageToSend.getPriority(),
> 		30000);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (AMQCPP-428) setTimeToLive not working

Posted by "Oscar Pernas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQCPP-428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476939#comment-13476939 ] 

Oscar Pernas edited comment on AMQCPP-428 at 10/16/12 11:44 AM:
----------------------------------------------------------------

Sorry for my later response and for the poor details that I gave you. Messages expires at the correct time, only if these messages are persistent, if not, messages are never discarded. 
                
      was (Author: opernas):
    Sorry for my later response and for the poor details that I give you. Messages expires at the correct time, only if these messages are persistent, if not, messages are never discarded. 
                  
> setTimeToLive not working
> -------------------------
>
>                 Key: AMQCPP-428
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-428
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl, Transports
>    Affects Versions: 3.4.4
>         Environment: Debian linux wheezy
>            Reporter: Oscar Pernas
>            Assignee: Timothy Bish
>              Labels: discarded, expired, message,, timeToLive,
>
> Making tests, method setTimeToLive of message is not working and messages are never discarded by the broker. This can produce an out of memory in some situations.
> Example code:
> //sending message
> producer->send(	textMessage,
> 		getPersistent(),
> 		activeMessageToSend.getPriority(),
> 		30000);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira