mirror of https://github.com/apache/kafka.git
KAFKA-1692 Include client ID in new producer IO thread name; reviewed by Neha Narkhede
This commit is contained in:
parent
1733c0bfb0
commit
7062ed7db3
|
@ -139,7 +139,8 @@ public class KafkaProducer implements Producer {
|
|||
config.getInt(ProducerConfig.TIMEOUT_CONFIG),
|
||||
this.metrics,
|
||||
new SystemTime());
|
||||
this.ioThread = new KafkaThread("kafka-producer-network-thread", this.sender, true);
|
||||
String ioThreadName = "kafka-producer-network-thread" + (clientId.length() > 0 ? " | " + clientId : "");
|
||||
this.ioThread = new KafkaThread(ioThreadName, this.sender, true);
|
||||
this.ioThread.start();
|
||||
|
||||
this.errors = this.metrics.sensor("errors");
|
||||
|
|
Loading…
Reference in New Issue