mxsm opened a new issue #2879:
URL: https://github.com/apache/rocketmq/issues/2879


   ```java
   public void printAllPeriodically() {
           try {
               try {
                   this.lock.readLock().lockInterruptibly();
                   
log.info("--------------------------------------------------------");
                   {
                       log.info("topicQueueTable SIZE: {}", 
this.topicQueueTable.size());
                       Iterator<Entry<String, List<QueueData>>> it = 
this.topicQueueTable.entrySet().iterator();
                       while (it.hasNext()) {
                           Entry<String, List<QueueData>> next = it.next();
                           log.info("topicQueueTable Topic: {} {}", 
next.getKey(), next.getValue());
                       }
                   }
   
                   {
                       log.info("brokerAddrTable SIZE: {}", 
this.brokerAddrTable.size());
                       Iterator<Entry<String, BrokerData>> it = 
this.brokerAddrTable.entrySet().iterator();
                       while (it.hasNext()) {
                           Entry<String, BrokerData> next = it.next();
                           log.info("brokerAddrTable brokerName: {} {}", 
next.getKey(), next.getValue());
                       }
                   }
   
                   {
                       log.info("brokerLiveTable SIZE: {}", 
this.brokerLiveTable.size());
                       Iterator<Entry<String, BrokerLiveInfo>> it = 
this.brokerLiveTable.entrySet().iterator();
                       while (it.hasNext()) {
                           Entry<String, BrokerLiveInfo> next = it.next();
                           log.info("brokerLiveTable brokerAddr: {} {}", 
next.getKey(), next.getValue());
                       }
                   }
   
                   {
                       log.info("clusterAddrTable SIZE: {}", 
this.clusterAddrTable.size());
                       Iterator<Entry<String, Set<String>>> it = 
this.clusterAddrTable.entrySet().iterator();
                       while (it.hasNext()) {
                           Entry<String, Set<String>> next = it.next();
                           log.info("clusterAddrTable clusterName: {} {}", 
next.getKey(), next.getValue());
                       }
                   }
               } finally {
                   this.lock.readLock().unlock();
               }
           } catch (Exception e) {
               log.error("printAllPeriodically Exception", e);
           }
       }
   ```
   log.info("--------------------------------------------------------"); 
   There's no point in printing. I think the print can be removed


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to