Skip to content

Error connecting to Sentinel with v3 due to Resp3 #3172

Description

@UBSaxo

After upgrading to StackExchange.Redis v3 (from v2) we have started to see errors during initial connection:

StackExchange.Redis.RedisConnectionException: Sentinel: The ConnectionMultiplexer is not a Sentinel connection. Detected as: Standalone at StackExchange.Redis.ConnectionMultiplexer.GetSentinelMasterConnection(ConfigurationOptions config, TextWriter log) in /_/src/StackExchange.Redis/ConnectionMultiplexer.Sentinel.cs:line 170

This seems to happen because v3 uses Resp3 as default protocol and the handshake with Sentinel fails with this.

We have tried forcing Resp2 in connection options and then it works again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions