Misleading RedisConnectionException when attempting to connect in Sentinel mode with abortConnect=False
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
まず、無効な host、serviceName、abortConnect=False で問題を再現し、RedisConnectionException を生成する Sentinel 接続失敗の処理を追跡します。この経路を、ネットワーク障害や認証障害を含むスタンドアロン接続の失敗と比較します。失敗した Sentinel 接続が、スタンドアロンの Redis インスタンスが検出されたことを示唆せず、実際の失敗を報告すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When attempting to create a new ConnectionMultiplexer instance while using a serviceName in the ConfigurationOptions (Sentinel mode) and with abortConnect=False, any failed connection returns a misleading exception that seems to imply that while a connection was established, the redis instance was detected as Standalone.
An exception of type 'StackExchange.Redis.RedisConnectionException' occurred in StackExchange.Redis.dll but was not handled in user code: 'Sentinel: The ConnectionMultiplexer is not a Sentinel connection. Detected as: Standalone'
This occurs even when the failure is the result of network issues, non-existent host, incorrect password etc
Package Version
2.8.37
Steps To Reproduce
-
Attempt to create a ConnectionMultiplexer instance using an invalid host in the ConfigurationOptions, while specifying aservicename and abortConnect=False
-
Observe exception indicates that a Standalone redis instance was detected
The same issue occurs for any type of connection failure (network issues, authentication failure).
I would expect a similar connection failure exception to be thrown as a standalone failure would (e.g. ConnectionFailureType.UnableToResolvePhysicalConnection)
The current message is misleading as no "detection" could have taken place. It implicitly suggests a connection was made, but that is not the case.
- 主要言語
- C#
- スター
- 6.2k
- フォーク
- 1.6k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 31
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
StackExchange/StackExchange.Redis のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
StackExchange/StackExchange.Redis#3249 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
HotKeysClusterTests.CanUseClusterFilter skips intermittently, hiding the assertions it exists forオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
StackExchange/StackExchange.Redis#3239 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
StackExchange/StackExchange.Redis#3240 ·
メンテナーはふだん 1 日以内に返信
-
RedisValue equality treats "1,000", "(5)" and " 5 " as numbers, via NumberStyles.Any対応中かも @banlor が 21 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
StackExchange/StackExchange.Redis#3233 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Failover: support single configuration-string connect対応中かも @mgravell が 75 日前に担当しました。 オープン⚙️ area:failover
StackExchange/StackExchange.Redis#3147 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
StackExchange/StackExchange.Redis の issue をすべて見る
似ている issue
-
clawsweeper:source-repro impact:ux-release-blocker issue-rating: 🦞 diamond lobster P0
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
openclaw/openclaw-windows-node#1723 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
good first issue hacktoberfest help wanted new-language
難易度 2/5 半日 初心者へのやさしさ 78/100
-
[Android] Controls.DeviceTests build fails with xUnit2031 analyzer error対応中かも @HarishwaranVijayakumar が今日担当しました。 オープンpartner/syncfusion s/triaged s/verified
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dotnet/maui#39376 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 62/100
-
bug misleading tooling trivial
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信