StackExchange / StackExchange/StackExchange.Redis

Question: how can I know the retry times current try is?

Open
#1,627 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.2k
Forks
1.6k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

We use abortConnect=false and we wanna log ConnectionFailed event, for allowed retry, we wanna log it as warning, as for more than ten or six times, log it as error.

So I'm wondering if there's some method that I can get how many times had been retried? And could we use ConnectionRestored event to reset the retry times so that record for retry times?

Thanks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a source file, test, or implementation entry point. First determine whether the client exposes retry state around ConnectionFailed and ConnectionRestored, then clarify the intended API and reset semantics; the work is complete only when the requested retry count behavior is specified and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, redis
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.