bharathv commented on a change in pull request #3610:
URL: https://github.com/apache/hbase/pull/3610#discussion_r694467398



##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfoManagerImpl.java
##########
@@ -655,22 +663,27 @@ private synchronized void flushConfig(Map<String, 
RSGroupInfo> newGroupMap) thro
       // according to the inputted newGroupMap (an updated copy of rsGroupMap)
       this.holder = new RSGroupInfoHolder(newGroupMap);
 
+      LOG.debug("New RSGroup map: {}", newGroupMap.toString());

Review comment:
       Its not a good idea to call toString() on the parameter as that defeats 
the purpose of parameterized logging, if DEBUG is not enabled.  toString() is 
implicitly evaluated by log4j only if DEBUG logging is enabled for this class. 
Please get rid of toString() here and below.
   
   
https://www.javacodegeeks.com/2015/10/better-performing-non-logging-logger-calls-in-log4j2.html




-- 
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: [email protected]

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


Reply via email to