Skip to content

Document retrying non-idempotent operations - #3332

Open
pkryusuf wants to merge 1 commit into
App-vNext:mainfrom
pkryusuf:docs-3324-retry-idempotency
Open

pkryusuf wants to merge 1 commit into
App-vNext:mainfrom
pkryusuf:docs-3324-retry-idempotency

Conversation

@pkryusuf

Copy link
Copy Markdown

Pull Request

The issue or feature being addressed

Fixes #3324

Details on the issue fix or feature implementation

Adds an [!IMPORTANT] note to docs/strategies/retry.md, right after the defaults table. It explains that with the default ShouldHandle a retry can re-run work that already took effect (e.g. a committed database transaction whose reply was lost), and suggests making the operation idempotent, checking the previous outcome, or narrowing ShouldHandle.

Also adds idempotent to .github/wordlist.txt for the spellcheck. Prose only, no snippet changes. markdownlint passes locally.

Confirm the following

  • I started this PR by branching from the head of the default branch
  • I have targeted the PR to merge into the default branch
  • I have included unit tests for the issue/feature
  • I have successfully run a local build
  • I have the experience and knowledge necessary to understand, review, and validate all content in this PR.
  • This PR has content that I did not fully write myself.
    • I used AI to assist in writing or reviewing the content of this PR.

Prepared with the help of Claude Code; I reviewed the wording myself.

@pkryusuf

Copy link
Copy Markdown
Author

@dotnet-policy-service agree

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The retry strategy's defaults re-run a database transaction that committed

1 participant