New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RqueueMessageManager.deleteMessage(queueName, Id) not deleting the message from the Queue #162
Comments
Finally block is always called. Can you read MessageMetadata it should have the flag deleted is true, this is not a bug? This is just an inconsistency about the usage of MesssageMetadata. |
how is it not a bug if calling and also if you call And what do you mean with calling |
I meant to say, this method does not check delete flag , we can add a fix
for this
On Fri, 5 Aug 2022 at 5:46 PM, pcastroadc ***@***.***> wrote:
how is it not a bug if calling RqueueMessageManager.getMessage(queueName,
id) after deleting it still returns it?
and also if you call deleteAllMessages it does delete it and then
RqueueMessageManager.getMessage() doesnt return it anymore. That's not
consistent behavior, what do you mean with calling read MessageMetadata
exactly? using another one of your classes to do it?
—
Reply to this email directly, view it on GitHub
<#162 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC2FCPVIO42BSFCK2TGQB2DVXUAZHANCNFSM55URTWZA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
--
Thanks,
Sonu Kumar
Linkedin <https://in.linkedin.com/in/sonus21>
GitHub
<https://github.com/sonus21>
|
One more question, Will messages mark as deleted still be picked up by the listeners? |
no, it will not be picked by message listener.
Thanks,
Sonu Kumar
Linkedin <https://in.linkedin.com/in/sonus21>
GitHub
<https://github.com/sonus21>
…On Fri, Aug 5, 2022 at 6:26 PM pcastroadc ***@***.***> wrote:
One more question, Will messages mark as deleted still be picked up by the
listeners?
—
Reply to this email directly, view it on GitHub
<#162 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC2FCPSJJ6IRDX4RM2PCINTVXUFPPANCNFSM55URTWZA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
What's not working?
RqueueMessageManager.deleteMessage(queueName, Id) not deleting the message from the Queue, I basically call it but if I call RqueueMessageManager.getMessage() is still there afterwards
While RqueueMessageManager.deleteAllMessages(queueName) does work
What're application dependencies ?
Sample code:
I am not sure if this is related to this part of your code:
you are not releasing the lock here when it enters in the IF
The text was updated successfully, but these errors were encountered: