Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2203

Redis xlclaim returns 1 claimed, yet is not really claimed, xpending still returns the just claimed instance

$
0
0

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.

  1. I call pendings for the consumer id
  2. 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:

enter image description here

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?


Viewing all articles
Browse latest Browse all 2203

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>