You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "lh0156 (via GitHub)" <gi...@apache.org> on 2026/08/03 07:17:27 UTC

[PR] KAFKA-20855: Extract bootstrap resolution from NetworkClient [kafka]

lh0156 opened a new pull request, #23066:
URL: https://github.com/apache/kafka/pull/23066

   ### Summary
   
   KIP-909 added asynchronous bootstrap DNS resolution state to `NetworkClient`. This change extracts that state machine into the package-private `BootstrapServerResolver` so `NetworkClient` remains focused on network I/O and metadata coordination.
   
   The behavior is unchanged: resolution starts eagerly, the timeout starts on the first poll, completed results are processed before the deadline check, failed or empty resolutions retry with the configured backoff, and close/interrupt paths cancel outstanding work. There are no public API, configuration, protocol, or wire-format changes.
   
   ### Test Strategy
   
   The resolver tests define the lifecycle contract for successful resolution, empty-result retry, exceptional-result retry, and timeout failure before the implementation is integrated. Existing `NetworkClientTest` bootstrap and networking coverage remains green.
   
   Verified with:
   
   - `./gradlew :clients:test --tests org.apache.kafka.clients.BootstrapServerResolverTest --tests org.apache.kafka.clients.NetworkClientTest`
   - `./gradlew :clients:spotlessCheck :clients:checkstyleMain :clients:checkstyleTest :clients:spotbugsMain`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-20855: Extract bootstrap resolution from NetworkClient [kafka]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23066:
URL: https://github.com/apache/kafka/pull/23066#issuecomment-5248689592

   A label of 'needs-attention' was automatically added to this PR in order to raise the
   attention of the committers. Once this issue has been triaged, the `triage` label
   should be removed to prevent this automation from happening again.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org