vvcephei opened a new pull request #10404:
URL: https://github.com/apache/kafka/pull/10404


   While running tests for https://github.com/apache/kafka/pull/10397, I got a 
test timeout under Java 8.
   
   I ran it locally via `./gradlew clean -PscalaVersion=2.12 :clients:unitTest 
--profile --no-daemon --continue 
-PtestLoggingEvents=started,passed,skipped,failed -PignoreFailures=true 
-PmaxTestRetries=1 -PmaxTestRetryFailures=5` (copied from the Jenkins log) and 
was able to determine that the hanging test is:
   
   
org.apache.kafka.clients.admin.KafkaAdminClientTest#testClientSideTimeoutAfterFailureToReceiveResponse
   
   It's odd, but it hangs most times on my branch, and I haven't seen it hang 
on trunk, despite the fact that my PR doesn't touch the client or core code at 
all.
   
   Some debugging reveals that when the client is hanging, it's because the 
listTopics request is still sitting in its pendingRequests queue, and if I 
understand the test setup correctly, it would never be completed, since we will 
never advance time or queue up a metadata response for it.
   
   I figure a reasonable blanket response to this is just to make sure that the 
test harness will close the admin client eagerly instead of lazily.
   
   ### 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