nodece opened a new issue, #4585:
URL: https://github.com/apache/bookkeeper/issues/4585

   Some BookKeeper tests occasionally fail due to long delays in reverse DNS 
lookups. The root cause is the use of `InitialDirContext.getAttributes()` in 
`org.apache.bookkeeper.net.DNS#reverseDns`, which can block for up to 120 
seconds if DNS resolution hangs. This leads to flaky or timing-out tests such 
as:
   
   - https://github.com/apache/bookkeeper/issues/4564
   - https://github.com/apache/bookkeeper/issues/4565
   
   To improve reliability, we should replace the current blocking 
implementation with Netty's asynchronous DNS resolver. This will allow us to 
set timeouts, avoid blocking test threads, and reduce flakiness.
   
   Test with Netty DNS:
   
   <img width="602" alt="Image" 
src="https://github.com/user-attachments/assets/a6bf07f7-d9ef-4053-90ff-d303babaae08";
 />


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to