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
Unhandled IllegalStateException in RedissonLock #87
Comments
fixed |
Thanks for taking your time to look into this issue. Even though the patch removes the log, it won't address the root cause that makes this happen. I've looked deep into the problem and I have finally figured it out. The issue can be consistently reproduced as follows (always using 1.1.5)
once you hit the breakpoint at the given location, restart redis, and resume. What will happen is that 2 subscribe commands will be issued to Redis, and therefore, the listeners will be triggered twice. This happens because of the code at The Since
The best fix I can think of is not depending on the presence of listener to update the internal state of the pubsub connection. I'm sending you a pull request in a couple minutes with this. |
- This fixes the logs seen in redisson#87 - Makes sure the pubsub connection is kept in the proper state, regardless of the order in which to clients decide to operate (unsubscribe / removelistener)
- This fixes the logs seen in redisson#87 - Makes sure the pubsub connection is kept in the proper state, regardless of the order in which to clients decide to operate (unsubscribe / removelistener)
I make heavy use of RLock in my app, and from time to time I find this in my logs.
The text was updated successfully, but these errors were encountered: