[jira] [Commented] (PROTON-289) outgoing tracker and outgoing queue disagree in case the server is not around

2013-04-10 Thread Bozo Dragojevic (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13627708#comment-13627708
 ] 

Bozo Dragojevic commented on PROTON-289:


if you comment out the failing assert, the server will start and another 
message will be sent to the same address.
the second message (ofcourse) gets delivered to the server. but the first 
message remains in the no-mans-land

it's not sent. it's still pending.

So I guess the real question is, what does messenger do with the message one. 
drop it to the floor?


> outgoing tracker and outgoing queue disagree in case the server is not around
> -
>
> Key: PROTON-289
> URL: https://issues.apache.org/jira/browse/PROTON-289
> Project: Qpid Proton
>  Issue Type: Bug
>Reporter: Bozo Dragojevic
> Attachments: 
> 0002-Add-test-for-sending-to-a-server-that-is-not-started.patch
>
>
> send a message to localhost:12345 when there is no server
> tracker will say it's PENDING
> outgoing count will be 0
> Which of them is wrong?

--
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] (PROTON-289) outgoing tracker and outgoing queue disagree in case the server is not around

2013-04-10 Thread Rafael H. Schloming (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13627700#comment-13627700
 ] 

Rafael H. Schloming commented on PROTON-289:


The reason this is happening is because pn_messenger_outgoing reports how many 
deliveries have yet to be written to the wire, i.e. how many deliveries are 
unsent, whereas the tracker queue is actually tracking unacknowledged 
deliveries, so entries in the tracker queue will still be pending after they 
have been written to the wire, but before the server has acknowledged the 
deliveries.

I'm not sure this is a bug per/se, but more of an API/design question as it 
would seem to be useful to be able to query both unsent and/or pending 
deliveries depending on what your use case is.


> outgoing tracker and outgoing queue disagree in case the server is not around
> -
>
> Key: PROTON-289
> URL: https://issues.apache.org/jira/browse/PROTON-289
> Project: Qpid Proton
>  Issue Type: Bug
>Reporter: Bozo Dragojevic
> Attachments: 
> 0002-Add-test-for-sending-to-a-server-that-is-not-started.patch
>
>
> send a message to localhost:12345 when there is no server
> tracker will say it's PENDING
> outgoing count will be 0
> Which of them is wrong?

--
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