chirag-wadhwa5 opened a new pull request, #21001: URL: https://github.com/apache/kafka/pull/21001
Currently, if a ListOffsets request fails in NetworkPartitionMetadataClient for any reason, the corresponding future is completed then and there, without any retries. But the NetworkClient and InterbrokerSendThread are loaded lazily in the NetworkPartitionMetadataClient on the arrival of the first request. But when the first request comes, it is immediately enqueued in the NetworkClient, before the connection could be established, thereby always failing the first request. As a solution to that, this PR introduces a retry mechanism with an upper limit on the retry attempts, as well as exponential backoff between succesive retries. -- 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]
