Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Sentinel connection error when using the highIntegrity = true configuration #2992

Copy link
Copy link
@thangpv212

Description

@thangpv212
Issue body actions

I am using Redis with the sentinel model.
Environment information:

Redis version: 7.0.5
StackExchange.Redis version: 2.8.58
My connection string configuration is as follows:
“10.0.0.1:26379,10.0.0.2:26379,10.0.0.3:26379,serviceName=mycluster,abortConnect=false,highIntegrity=true”

I encountered the following error:

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 173
   at StackExchange.Redis.ConnectionMultiplexer.SentinelPrimaryConnectAsync(ConfigurationOptions configuration, TextWriter writer) in /_/src/StackExchange.Redis/ConnectionMultiplexer.Sentinel.cs:line 157
   at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.ConnectSlowAsync(CancellationToken token)
   at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAndRefreshAsync(String key, Boolean getData, CancellationToken token)
   at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAsync(String key, CancellationToken token)
   at Microsoft.Extensions.Caching.Distributed.DistributedCacheExtensions.GetStringAsync(IDistributedCache cache, String key, CancellationToken token)

Before setting highIntegrity=true, I did not encounter this error.

Please help me find the root cause of the error.
Thank you!

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.