So, i am using Java to do this, but essentially, and I can see it in the debugger, I end up in a stackoverflow (here too) due to a claim not really being claimed despite it saying it does.
- I call pendings for the consumer id
- I call claim on a specific entry
Then to make sure I repeat this process until there are no pending for that consumer id.
However, I end up in a loop.
I get this in a loop, same ids:
As you can see the pending message 1639, then I claim it, I get a return of the claimed with the same id, 1639.
However, when I call xpending again, I get the same instance. Then I claim it, successfully I guess?
Then I check pendings again.
99% of the time this logic has been working, but as of now, I can repeat this process, as redis seems unwilling to release or actually claim this particular message.
For some reason this message here refuses to be claimed, despite redis returning it as claimed.
I can use the force flag, but I am not really sure what that is for.
The passed idle time is zero, newidletime is zero, force false, retries0.
Maybe I should up the retries?
But why is redis returning it as claimed though?