TengYao Chi created KAFKA-21343:
-----------------------------------

             Summary: Route bootstrap DNS resolution through the injectable 
HostResolver
                 Key: KAFKA-21343
                 URL: https://issues.apache.org/jira/browse/KAFKA-21343
             Project: Kafka
          Issue Type: Sub-task
          Components: clients
            Reporter: TengYao Chi
            Assignee: TengYao Chi


Bootstrap DNS resolution currently calls InetAddress/InetSocketAddress 
directly, bypassing HostResolver, the abstraction NetworkClient already uses 
elsewhere to make DNS behavior injectable in tests.

This is why the async bootstrap path is hard to test today. Proposed change: 
route bootstrap resolution through HostResolver too, using the same injection 
point already exposed by KafkaAdminClient. A local prototype confirms this 
works, compiles cleanly, and passes the existing test suite. This unblocks 
writing recovery/retry test coverage for the async bootstrap path.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to