Remove Stale comments for meta response handling logic
Correct empty meta response comment, since it is no longer related only to brokers associating with the query topic.
Reviewers: Boyang Chen
@@ -1089,8 +1089,8 @@ public class NetworkClient implements KafkaClient {
if (!errors.isEmpty())
log.warn("Error while fetching metadata with correlation id {} : {}", requestHeader.correlationId(), errors);
- // Don't update the cluster if there are no valid nodes...the topic we want may still be in the process of being
- // created which means we will get errors and no nodes until it exists
+ // When talking to the startup phase of a broker, it is possible to receive an empty metadata set, which
+ // we should retry later.
if (response.brokers().isEmpty()) {
log.trace("Ignoring empty metadata response with correlation id {}.", requestHeader.correlationId());
this.metadata.failedUpdate(now);
