dengziming created KAFKA-9291: --------------------------------- Summary: remove the code of KAFKA-9288 which bring fatal bug Key: KAFKA-9291 URL: https://issues.apache.org/jira/browse/KAFKA-9291 Project: Kafka Issue Type: Improvement Reporter: dengziming Assignee: dengziming Attachments: image-2019-12-11-19-23-04-499.png, image-2019-12-11-19-28-29-559.png, image-2019-12-11-19-29-28-156.png, image-2019-12-11-19-29-53-353.png
KAFKA-9288 add some code which I didn't now fully understand, but it indeed bring some bug which is serious and I debugged the process: 1. when consumer client start, an `ApiVersionsRequest` are send 2. KafkaApis. handleApiVersionsRequest(request) are invoke 3. ApiVersionsResponse.createApiVersionsResponse() 4. and it will add all `ApiVersionsResponseKey` to `ApiVersionsResponseKeyCollection` 5. every time add an element will return false!( I didn't find the reason) !image-2019-12-11-19-23-04-499.png! 6. after the for loop, the `ApiVersionsResponseKeyCollection` is EMPTY! !image-2019-12-11-19-28-29-559.png! 7. when the Client receive the response, ERROR will occur. !image-2019-12-11-19-29-28-156.png! 8. and my application was terminated !image-2019-12-11-19-29-53-353.png! -- This message was sent by Atlassian Jira (v8.3.4#803005)