question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RedissonResponseTimeoutException in HSCAN

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Aviisekcommented, Jul 24, 2020

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.

0reactions
Aviisekcommented, Jul 14, 2020

Actually this exception is not consistent. Yes, I will try this method and will let you know the result. Thanks @mrniko .

Read more comments on GitHub >

github_iconTop Results From Across the Web

HSCAN - Redis
Incrementally iterate hash fields and associated values.
Read more >
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found