xijiu commented on PR #16832:
URL: https://github.com/apache/kafka/pull/16832#issuecomment-2275465306

   I have writen a junit test to invoke admin client:
   ```
   @Test
   public void test() throws Exception {
       AdminClient sourceAdminClient = 
AdminClient.create(getCommonProperties());
       for (int i = 0; i < Integer.MAX_VALUE; i++) {
           ListTopicsResult listTopicsResult = sourceAdminClient.listTopics();
           System.out.println("waiting");
           Thread.sleep(5000);
       }
   
       synchronized (KafkaAdminClient.class) {
           KafkaAdminClient.class.wait();
       }
   }
   ```
   
   and I open the JMX window by `jconsole` command, then observing changes in 
related attributes
   
   before the modification:
   
![image](https://github.com/user-attachments/assets/efb88a9c-b2ff-4113-8121-2a3acfd658ea)
   we find the node latency is NaN
   
   after the modification:
   
![image](https://github.com/user-attachments/assets/a696ad87-f110-416f-a843-f16a1cbc3eef)
   we have successfully obtained the relevant attributes


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to