Kafka - Monitoring and Operations
What will happen if you try to get a non-existent JMX attribute like this?
ObjectName name = new ObjectName("kafka.server:type=BrokerTopicMetrics,name=MessagesInPerSec");
String value = (String) mbeanServer.getAttribute(name, "NonExistentAttr");
System.out.println(value);
