Skip to content

Add a workaround to make sure Redis connection is reconnected in ConnectionRestored event after Redis restart #3095

@Xiaohongt

Description

@Xiaohongt

I found an external issue that after Redis restart, sometimes in ConnectionRestored event the Redis connection is not reconnected yet, however after a few seconds eventually connection become reconnected, see the external issue StackExchange/StackExchange.Redis#61.

So in the StackExchange Redis scale-out, it will be better to add a workaround to wait Redis Connection become real connected in ConnectionRestored event handler, then reading Redis Key /sending message can always work after that.
Otherwise when in ConnectionRestored event the Redis connection is not connected yet, reading Redis Key /sending message will throw RedisConnectionException.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions