piotrrzysko opened a new pull request #9315:
URL: https://github.com/apache/kafka/pull/9315


   As ticket suggested I’ve tried to introduce in-memory DNS server for testing 
purposes, but unfortunately capability to change default DNS provider has been 
removed in Java 9: https://bugs.openjdk.java.net/browse/JDK-8134577.  There is 
a request for restoring it: https://bugs.openjdk.java.net/browse/JDK-8192780, 
but so far has not been implemented.
   
   Therefore this PR decouples DNS resolution from `InetAddress.getAllByName` 
implementation in order to mock its behavior in tests. 
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


----------------------------------------------------------------
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.

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


Reply via email to