Skip to content

[fix][client] Handle synchronous RetryUtil supplier failures#25893

Open
hiSandog wants to merge 1 commit into
apache:masterfrom
hiSandog:fix/retryutil-sync-exception-20260530
Open

[fix][client] Handle synchronous RetryUtil supplier failures#25893
hiSandog wants to merge 1 commit into
apache:masterfrom
hiSandog:fix/retryutil-sync-exception-20260530

Conversation

@hiSandog
Copy link
Copy Markdown
Contributor

Motivation

RetryUtil retries when the returned future completes exceptionally, but a supplier that throws before returning a future escapes the retry path and can leave the callback incomplete.

Modifications

Route synchronous supplier failures through the same retry and mandatory-stop handling used for failed futures, and add a focused regression test.

Verifying this change

  • git diff --check
  • ./gradlew :pulsar-broker:test --tests org.apache.pulsar.client.impl.RetryUtilTest (could not run locally: no Java runtime is installed)

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.

1 participant