RedissonResponseTimeoutException in HSCAN
See original GitHub issueThe application is throwing RedissonResponseTimeoutException. It is happening when Redisson fires HSCAN command because the code is iterating over HashMap with size of 8.5k entries. Below is the exception message
org.redisson.client.RedisResponseTimeoutException: Redis server response timeout (6000 ms) occured after 6 retry attempts. Increase nettyThreads and/or timeout settings. Try to define pingConnectionInterval setting. Command: (HSCAN)
I tried increasing the netty thread to 64 and retryAttempts to 6 and timeout time to 6000.
Redisson version : 3.12.5 Redis version: 5
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
c# - Unable to call HSCAN with pattern from .Net using ...
I have the same problem when running Redis on windows, and I think it is because the StackExchange.Redis library fails to parse the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So, it seemed it was because of long operation on this huge hashmap. So, in order to handle this, I did refactor the code to reduce.
Actually this exception is not consistent. Yes, I will try this method and will let you know the result. Thanks @mrniko .