You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Jan Bares <ja...@wood.cz> on 2014/02/20 11:16:27 UTC
Java JMS acknowledge and prefetech
Hi,
I need someone with good JMS knowledge to clarify the Message.acknowledge(): "Acknowledges all consumed messages of the session of this consumed message". With QPID 0.26 and AMQP 1.0 is seems that acknowledge also acknowledges prefetched messages that were not returned from receive() or onMessage(). Is this bug of QPID client AMQP 1.0 implementation?
Please refer to http://stackoverflow.com/questions/21679926/servicebus-over-amqp-looses-redelivered-messages/21864141?noredirect=1#21864141
Thanks, Jan
Jan Bareš
Calypso Lead Developer
In association with
WOOD & Company Financial Services, a.s.
Palladium, Náměstí Republiky 1079/1a
110 00 Prague, Czech Republic
Tel. +420 222 096 111
Direct +420 222 096 457
Fax. +420 222 096 222
DISCLAIMER
________________________________
WOOD & Company Financial Services, a.s. and its branches are authorized and regulated by the CNB as Home State regulator and in Poland by the KNF, in Slovakia by the NBS and in the UK by the FCA as Host State regulators. For further information about WOOD & Co., its investment services, financial instruments and associated risks, safeguard client assets (incl. compensation schemes) and contractual relationship please see our website at www.wood.com<http://www.wood.com/> under section Corporate Governance.
Unless otherwise stated, this transmission is neither an offer nor the solicitation of an offer to sell or purchase any investment. All estimates, opinions and other information contained herein are subject to change without notice and are provided in good faith but without legal responsibility or liability. Opinion may be personal to the author and may not reflect the opinions of WOOD & Co. Communications from sales persons, sales traders or traders should not be regarded as investment research and may contain opinions or trading ideas which are different from WOOD & Co. investment research opinions.
This e-mail and any attachments are confidential and may be privileged or otherwise protected from disclosure. If you are not a named addressee you must not use, disclose, distribute, copy, print or rely on this e-mail and any of its attachments. Please notify the sender that you have received this email by mistake by replying to the email, and then delete the email and any copies of it. Although WOOD & Co. routinely screens e-mails for viruses, addressees should scan this e-mail and any attachments for viruses. WOOD & Co. makes no representation or warranty as to the absence of viruses in this e-mail or any attachments. Please note that to ensure regulatory compliance and for the protection of our clients and business, we may monitor and read e-mails sent to and from our server(s).
________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
RE: Java JMS acknowledge and prefetech
Posted by Jan Bares <ja...@wood.cz>.
No problem at all, thank you for your time and support Rob
> -----Original Message-----
> From: Rob Godfrey [mailto:rob.j.godfrey@gmail.com]
> Sent: Thursday, February 20, 2014 4:57 PM
> To: users@qpid.apache.org
> Subject: Re: Java JMS acknowledge and prefetech
>
> I have reported the bug as
> https://issues.apache.org/jira/browse/QPID-5570and it is (hopefully)
> fixed on trunk after revision 1570234.
>
> Apologies again,
> Rob
>
>
> On 20 February 2014 16:33, Rob Godfrey <ro...@gmail.com> wrote:
>
> > OK - I have found the issue, it is indeed a bug in the Qpid client :-(
> >
> > The issue is in client acknowledge where, if you only have one message to
> > acknowledge, it will actually acknowledge all of the prefetched messages.
> > I shall check in a fix presently. If you use other acknowledge modes or
> > if you are acknowledging more than one message then you would not see
> this
> > issue.
> >
> > Apologies for this.
> >
> > -- Rob
> >
> >
> > On 20 February 2014 13:08, Rob Godfrey <ro...@gmail.com>
> wrote:
> >
> >> Hi Jan,
> >>
> >> I'll look into this - a first read through of the code didn't highlight
> >> any screaming errors in the Qpid client code (it appears to track the last
> >> message each message consumer has delivered to the application, and
> then
> >> when message.acknowledge() is called updates all the messages
> delivered
> >> through that consumer), however I'll set up a proper test after lunch to
> >> see if I can replicate your issue.
> >>
> >> Cheers,
> >> Rob
> >>
> >>
> >> On 20 February 2014 11:16, Jan Bares <ja...@wood.cz> wrote:
> >>
> >>> Hi,
> >>>
> >>> I need someone with good JMS knowledge to clarify the
> >>> Message.acknowledge(): "Acknowledges all consumed messages of the
> session
> >>> of this consumed message". With QPID 0.26 and AMQP 1.0 is seems that
> >>> acknowledge also acknowledges prefetched messages that were not
> returned
> >>> from receive() or onMessage(). Is this bug of QPID client AMQP 1.0
> >>> implementation?
> >>>
> >>> Please refer to
> >>> http://stackoverflow.com/questions/21679926/servicebus-over-amqp-
> looses-redelivered-messages/21864141?noredirect=1#21864141
> >>>
> >>> Thanks, Jan
> >>>
> >>> Jan Bareš
> >>> Calypso Lead Developer
> >>>
> >>> In association with
> >>> WOOD & Company Financial Services, a.s.
> >>> Palladium, Náměstí Republiky 1079/1a
> >>> 110 00 Prague, Czech Republic
> >>> Tel. +420 222 096 111
> >>> Direct +420 222 096 457
> >>> Fax. +420 222 096 222
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> DISCLAIMER
> >>> ________________________________
> >>> WOOD & Company Financial Services, a.s. and its branches are
> >>> authorized and regulated by the CNB as Home State regulator and in
> Poland
> >>> by the KNF, in Slovakia by the NBS and in the UK by the FCA as Host State
> >>> regulators. For further information about WOOD & Co., its investment
> >>> services, financial instruments and associated risks, safeguard client
> >>> assets (incl. compensation schemes) and contractual relationship please
> see
> >>> our website at www.wood.com<http://www.wood.com/> under
> section
> >>> Corporate Governance.
> >>> Unless otherwise stated, this transmission is neither an offer
> >>> nor the solicitation of an offer to sell or purchase any investment. All
> >>> estimates, opinions and other information contained herein are subject
> to
> >>> change without notice and are provided in good faith but without legal
> >>> responsibility or liability. Opinion may be personal to the author and may
> >>> not reflect the opinions of WOOD & Co. Communications from sales
> persons,
> >>> sales traders or traders should not be regarded as investment research
> and
> >>> may contain opinions or trading ideas which are different from WOOD &
> Co.
> >>> investment research opinions.
> >>> This e-mail and any attachments are confidential and may be
> >>> privileged or otherwise protected from disclosure. If you are not a
> named
> >>> addressee you must not use, disclose, distribute, copy, print or rely on
> >>> this e-mail and any of its attachments. Please notify the sender that you
> >>> have received this email by mistake by replying to the email, and then
> >>> delete the email and any copies of it. Although WOOD & Co. routinely
> >>> screens e-mails for viruses, addressees should scan this e-mail and any
> >>> attachments for viruses. WOOD & Co. makes no representation or
> warranty as
> >>> to the absence of viruses in this e-mail or any attachments. Please note
> >>> that to ensure regulatory compliance and for the protection of our
> clients
> >>> and business, we may monitor and read e-mails sent to and from our
> >>> server(s).
> >>> ________________________________
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> >>> For additional commands, e-mail: users-help@qpid.apache.org
> >>>
> >>>
> >>
> >
DISCLAIMER
________________________________
WOOD & Company Financial Services, a.s. and its branches are authorized and regulated by the CNB as Home State regulator and in Poland by the KNF, in Slovakia by the NBS and in the UK by the FCA as Host State regulators. For further information about WOOD & Co., its investment services, financial instruments and associated risks, safeguard client assets (incl. compensation schemes) and contractual relationship please see our website at www.wood.com<http://www.wood.com/> under section Corporate Governance.
Unless otherwise stated, this transmission is neither an offer nor the solicitation of an offer to sell or purchase any investment. All estimates, opinions and other information contained herein are subject to change without notice and are provided in good faith but without legal responsibility or liability. Opinion may be personal to the author and may not reflect the opinions of WOOD & Co. Communications from sales persons, sales traders or traders should not be regarded as investment research and may contain opinions or trading ideas which are different from WOOD & Co. investment research opinions.
This e-mail and any attachments are confidential and may be privileged or otherwise protected from disclosure. If you are not a named addressee you must not use, disclose, distribute, copy, print or rely on this e-mail and any of its attachments. Please notify the sender that you have received this email by mistake by replying to the email, and then delete the email and any copies of it. Although WOOD & Co. routinely screens e-mails for viruses, addressees should scan this e-mail and any attachments for viruses. WOOD & Co. makes no representation or warranty as to the absence of viruses in this e-mail or any attachments. Please note that to ensure regulatory compliance and for the protection of our clients and business, we may monitor and read e-mails sent to and from our server(s).
________________________________
Re: Java JMS acknowledge and prefetech
Posted by Rob Godfrey <ro...@gmail.com>.
I have reported the bug as
https://issues.apache.org/jira/browse/QPID-5570and it is (hopefully)
fixed on trunk after revision 1570234.
Apologies again,
Rob
On 20 February 2014 16:33, Rob Godfrey <ro...@gmail.com> wrote:
> OK - I have found the issue, it is indeed a bug in the Qpid client :-(
>
> The issue is in client acknowledge where, if you only have one message to
> acknowledge, it will actually acknowledge all of the prefetched messages.
> I shall check in a fix presently. If you use other acknowledge modes or
> if you are acknowledging more than one message then you would not see this
> issue.
>
> Apologies for this.
>
> -- Rob
>
>
> On 20 February 2014 13:08, Rob Godfrey <ro...@gmail.com> wrote:
>
>> Hi Jan,
>>
>> I'll look into this - a first read through of the code didn't highlight
>> any screaming errors in the Qpid client code (it appears to track the last
>> message each message consumer has delivered to the application, and then
>> when message.acknowledge() is called updates all the messages delivered
>> through that consumer), however I'll set up a proper test after lunch to
>> see if I can replicate your issue.
>>
>> Cheers,
>> Rob
>>
>>
>> On 20 February 2014 11:16, Jan Bares <ja...@wood.cz> wrote:
>>
>>> Hi,
>>>
>>> I need someone with good JMS knowledge to clarify the
>>> Message.acknowledge(): "Acknowledges all consumed messages of the session
>>> of this consumed message". With QPID 0.26 and AMQP 1.0 is seems that
>>> acknowledge also acknowledges prefetched messages that were not returned
>>> from receive() or onMessage(). Is this bug of QPID client AMQP 1.0
>>> implementation?
>>>
>>> Please refer to
>>> http://stackoverflow.com/questions/21679926/servicebus-over-amqp-looses-redelivered-messages/21864141?noredirect=1#21864141
>>>
>>> Thanks, Jan
>>>
>>> Jan Bareš
>>> Calypso Lead Developer
>>>
>>> In association with
>>> WOOD & Company Financial Services, a.s.
>>> Palladium, Náměstí Republiky 1079/1a
>>> 110 00 Prague, Czech Republic
>>> Tel. +420 222 096 111
>>> Direct +420 222 096 457
>>> Fax. +420 222 096 222
>>>
>>>
>>>
>>>
>>>
>>> DISCLAIMER
>>> ________________________________
>>> WOOD & Company Financial Services, a.s. and its branches are
>>> authorized and regulated by the CNB as Home State regulator and in Poland
>>> by the KNF, in Slovakia by the NBS and in the UK by the FCA as Host State
>>> regulators. For further information about WOOD & Co., its investment
>>> services, financial instruments and associated risks, safeguard client
>>> assets (incl. compensation schemes) and contractual relationship please see
>>> our website at www.wood.com<http://www.wood.com/> under section
>>> Corporate Governance.
>>> Unless otherwise stated, this transmission is neither an offer
>>> nor the solicitation of an offer to sell or purchase any investment. All
>>> estimates, opinions and other information contained herein are subject to
>>> change without notice and are provided in good faith but without legal
>>> responsibility or liability. Opinion may be personal to the author and may
>>> not reflect the opinions of WOOD & Co. Communications from sales persons,
>>> sales traders or traders should not be regarded as investment research and
>>> may contain opinions or trading ideas which are different from WOOD & Co.
>>> investment research opinions.
>>> This e-mail and any attachments are confidential and may be
>>> privileged or otherwise protected from disclosure. If you are not a named
>>> addressee you must not use, disclose, distribute, copy, print or rely on
>>> this e-mail and any of its attachments. Please notify the sender that you
>>> have received this email by mistake by replying to the email, and then
>>> delete the email and any copies of it. Although WOOD & Co. routinely
>>> screens e-mails for viruses, addressees should scan this e-mail and any
>>> attachments for viruses. WOOD & Co. makes no representation or warranty as
>>> to the absence of viruses in this e-mail or any attachments. Please note
>>> that to ensure regulatory compliance and for the protection of our clients
>>> and business, we may monitor and read e-mails sent to and from our
>>> server(s).
>>> ________________________________
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>>> For additional commands, e-mail: users-help@qpid.apache.org
>>>
>>>
>>
>
Re: Java JMS acknowledge and prefetech
Posted by Rob Godfrey <ro...@gmail.com>.
OK - I have found the issue, it is indeed a bug in the Qpid client :-(
The issue is in client acknowledge where, if you only have one message to
acknowledge, it will actually acknowledge all of the prefetched messages.
I shall check in a fix presently. If you use other acknowledge modes or
if you are acknowledging more than one message then you would not see this
issue.
Apologies for this.
-- Rob
On 20 February 2014 13:08, Rob Godfrey <ro...@gmail.com> wrote:
> Hi Jan,
>
> I'll look into this - a first read through of the code didn't highlight
> any screaming errors in the Qpid client code (it appears to track the last
> message each message consumer has delivered to the application, and then
> when message.acknowledge() is called updates all the messages delivered
> through that consumer), however I'll set up a proper test after lunch to
> see if I can replicate your issue.
>
> Cheers,
> Rob
>
>
> On 20 February 2014 11:16, Jan Bares <ja...@wood.cz> wrote:
>
>> Hi,
>>
>> I need someone with good JMS knowledge to clarify the
>> Message.acknowledge(): "Acknowledges all consumed messages of the session
>> of this consumed message". With QPID 0.26 and AMQP 1.0 is seems that
>> acknowledge also acknowledges prefetched messages that were not returned
>> from receive() or onMessage(). Is this bug of QPID client AMQP 1.0
>> implementation?
>>
>> Please refer to
>> http://stackoverflow.com/questions/21679926/servicebus-over-amqp-looses-redelivered-messages/21864141?noredirect=1#21864141
>>
>> Thanks, Jan
>>
>> Jan Bareš
>> Calypso Lead Developer
>>
>> In association with
>> WOOD & Company Financial Services, a.s.
>> Palladium, Náměstí Republiky 1079/1a
>> 110 00 Prague, Czech Republic
>> Tel. +420 222 096 111
>> Direct +420 222 096 457
>> Fax. +420 222 096 222
>>
>>
>>
>>
>>
>> DISCLAIMER
>> ________________________________
>> WOOD & Company Financial Services, a.s. and its branches are
>> authorized and regulated by the CNB as Home State regulator and in Poland
>> by the KNF, in Slovakia by the NBS and in the UK by the FCA as Host State
>> regulators. For further information about WOOD & Co., its investment
>> services, financial instruments and associated risks, safeguard client
>> assets (incl. compensation schemes) and contractual relationship please see
>> our website at www.wood.com<http://www.wood.com/> under section
>> Corporate Governance.
>> Unless otherwise stated, this transmission is neither an offer
>> nor the solicitation of an offer to sell or purchase any investment. All
>> estimates, opinions and other information contained herein are subject to
>> change without notice and are provided in good faith but without legal
>> responsibility or liability. Opinion may be personal to the author and may
>> not reflect the opinions of WOOD & Co. Communications from sales persons,
>> sales traders or traders should not be regarded as investment research and
>> may contain opinions or trading ideas which are different from WOOD & Co.
>> investment research opinions.
>> This e-mail and any attachments are confidential and may be
>> privileged or otherwise protected from disclosure. If you are not a named
>> addressee you must not use, disclose, distribute, copy, print or rely on
>> this e-mail and any of its attachments. Please notify the sender that you
>> have received this email by mistake by replying to the email, and then
>> delete the email and any copies of it. Although WOOD & Co. routinely
>> screens e-mails for viruses, addressees should scan this e-mail and any
>> attachments for viruses. WOOD & Co. makes no representation or warranty as
>> to the absence of viruses in this e-mail or any attachments. Please note
>> that to ensure regulatory compliance and for the protection of our clients
>> and business, we may monitor and read e-mails sent to and from our
>> server(s).
>> ________________________________
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>> For additional commands, e-mail: users-help@qpid.apache.org
>>
>>
>
Re: Java JMS acknowledge and prefetech
Posted by Rob Godfrey <ro...@gmail.com>.
Hi Jan,
I'll look into this - a first read through of the code didn't highlight any
screaming errors in the Qpid client code (it appears to track the last
message each message consumer has delivered to the application, and then
when message.acknowledge() is called updates all the messages delivered
through that consumer), however I'll set up a proper test after lunch to
see if I can replicate your issue.
Cheers,
Rob
On 20 February 2014 11:16, Jan Bares <ja...@wood.cz> wrote:
> Hi,
>
> I need someone with good JMS knowledge to clarify the
> Message.acknowledge(): "Acknowledges all consumed messages of the session
> of this consumed message". With QPID 0.26 and AMQP 1.0 is seems that
> acknowledge also acknowledges prefetched messages that were not returned
> from receive() or onMessage(). Is this bug of QPID client AMQP 1.0
> implementation?
>
> Please refer to
> http://stackoverflow.com/questions/21679926/servicebus-over-amqp-looses-redelivered-messages/21864141?noredirect=1#21864141
>
> Thanks, Jan
>
> Jan Bareš
> Calypso Lead Developer
>
> In association with
> WOOD & Company Financial Services, a.s.
> Palladium, Náměstí Republiky 1079/1a
> 110 00 Prague, Czech Republic
> Tel. +420 222 096 111
> Direct +420 222 096 457
> Fax. +420 222 096 222
>
>
>
>
>
> DISCLAIMER
> ________________________________
> WOOD & Company Financial Services, a.s. and its branches are
> authorized and regulated by the CNB as Home State regulator and in Poland
> by the KNF, in Slovakia by the NBS and in the UK by the FCA as Host State
> regulators. For further information about WOOD & Co., its investment
> services, financial instruments and associated risks, safeguard client
> assets (incl. compensation schemes) and contractual relationship please see
> our website at www.wood.com<http://www.wood.com/> under section Corporate
> Governance.
> Unless otherwise stated, this transmission is neither an offer
> nor the solicitation of an offer to sell or purchase any investment. All
> estimates, opinions and other information contained herein are subject to
> change without notice and are provided in good faith but without legal
> responsibility or liability. Opinion may be personal to the author and may
> not reflect the opinions of WOOD & Co. Communications from sales persons,
> sales traders or traders should not be regarded as investment research and
> may contain opinions or trading ideas which are different from WOOD & Co.
> investment research opinions.
> This e-mail and any attachments are confidential and may be
> privileged or otherwise protected from disclosure. If you are not a named
> addressee you must not use, disclose, distribute, copy, print or rely on
> this e-mail and any of its attachments. Please notify the sender that you
> have received this email by mistake by replying to the email, and then
> delete the email and any copies of it. Although WOOD & Co. routinely
> screens e-mails for viruses, addressees should scan this e-mail and any
> attachments for viruses. WOOD & Co. makes no representation or warranty as
> to the absence of viruses in this e-mail or any attachments. Please note
> that to ensure regulatory compliance and for the protection of our clients
> and business, we may monitor and read e-mails sent to and from our
> server(s).
> ________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>