mirror of https://github.com/apache/kafka.git
MINOR: Change the log output information in the KafkaConsumer assign method (#12026)
Reviewers: Luke Chen <showuon@gmail.com>
This commit is contained in:
parent
6e9cd0c7f5
commit
4ad439c56d
|
|
@ -1120,7 +1120,7 @@ public class KafkaConsumer<K, V> implements Consumer<K, V> {
|
||||||
if (coordinator != null)
|
if (coordinator != null)
|
||||||
this.coordinator.maybeAutoCommitOffsetsAsync(time.milliseconds());
|
this.coordinator.maybeAutoCommitOffsetsAsync(time.milliseconds());
|
||||||
|
|
||||||
log.info("Subscribed to partition(s): {}", Utils.join(partitions, ", "));
|
log.info("Assigned to partition(s): {}", Utils.join(partitions, ", "));
|
||||||
if (this.subscriptions.assignFromUser(new HashSet<>(partitions)))
|
if (this.subscriptions.assignFromUser(new HashSet<>(partitions)))
|
||||||
metadata.requestUpdateForNewTopics();
|
metadata.requestUpdateForNewTopics();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue