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

   The KafkaServer startup() method instantiates a SocketServer, and then waits 
to call enableRequestProcessing. In the intervening time, an exception may be 
thrown which prevents the enableRequestProcessing from ever being called, and 
the KafkaServer skips to calling shutdown() instead.
   
   In this situation, the current SocketServer Acceptor and Processor 
implementations do not close their sockets. This causes the sockets to be 
leaked, potentially interfering with other tests. This change makes calling 
close() without first calling enableRequestProcessing perform the cleanup that 
the acceptor and processor threads would have performed. 
   
   ### 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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to