Skip to content

Core: Report commit retry exhaustion reason#16780

Open
jhrotko wants to merge 4 commits into
apache:mainfrom
jhrotko:16744-expose-retry-reason
Open

Core: Report commit retry exhaustion reason#16780
jhrotko wants to merge 4 commits into
apache:mainfrom
jhrotko:16744-expose-retry-reason

Conversation

@jhrotko

@jhrotko jhrotko commented Jun 11, 2026

Copy link
Copy Markdown

This updates commit retry handling to preserve the existing CommitFailedException contract while making retry exhaustion more actionable.

When a retryable commit failure exhausts the configured retry budget, the final CommitFailedException now includes guidance about which commit retry property likely needs adjustment:

  • commit.retry.num-retries
  • commit.retry.total-timeout-ms
  • both properties when both limits are reached

The generic retry logic in Tasks now reports a RetryExhaustionReason to opt-in handlers, while preserving previous behavior for non-retryable failures and callers that do not register an exhaustion handler.

Closes #16744

@github-actions github-actions Bot added the core label Jun 11, 2026
@jhrotko jhrotko marked this pull request as ready for review June 11, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Core: Expose commit retry exhaustion reason in failure messages

1 participant