Skip to content

[hotfix][runtime] Raise Kafka admin future timeout from 100ms to 30s - #1095

Open
purushah wants to merge 1 commit into
apache:mainfrom
purushah:fix-kafka-admin-timeout
Open

[hotfix][runtime] Raise Kafka admin future timeout from 100ms to 30s#1095
purushah wants to merge 1 commit into
apache:mainfrom
purushah:fix-kafka-admin-timeout

Conversation

@purushah

@purushah purushah commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Linked issue: N/A (hotfix)

Purpose of change

KafkaActionStateStore gives its AdminClient futures 100ms (DEFAULT_FUTURE_GET_TIMEOUT_MS). A cold AdminClient's first listTopics metadata round-trip routinely exceeds 100ms even against a broker on localhost, so store initialization fails nondeterministically at job startup. This raises the timeout to 30s — an initialization-time bound, not a per-record cost.

How it was found

Recovery experiments against the Kafka action-state store: jobs failed to start intermittently with future-timeout exceptions from topic setup, disappearing on retry once broker metadata was warm.

Tests

  • mvn test -pl runtime -am -Dtest='*ActionState*' — 127 tests, 0 failures (includes KafkaActionStateStoreTest), on current main.

API

No public API changes.

Documentation

  • doc-needed
  • doc-not-needed
  • doc-included

Was this patch authored or co-authored using generative AI tooling?

  • Yes
  • No

Generated-by: Claude Code (Claude Fable 5)

A cold AdminClient cannot complete its first listTopics metadata
round-trip in 100ms even against a local broker, so
KafkaActionStateStore initialization failed nondeterministically.
@github-actions github-actions Bot added doc-not-needed Your PR changes do not impact docs fixVersion/0.4.0 priority/major Default priority of the PR or issue. labels Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs fixVersion/0.4.0 priority/major Default priority of the PR or issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant