David Mollitor created HBASE-23368:
--------------------------------------

             Summary: Optimize Debug Logging of ClientZKSyncer
                 Key: HBASE-23368
                 URL: https://issues.apache.org/jira/browse/HBASE-23368
             Project: HBase
          Issue Type: Improvement
            Reporter: David Mollitor
            Assignee: David Mollitor


In particular, this caught my eye:

{code:java|title=ClientZKSyncer.java}
    // set meta znodes for client ZK
    Collection<String> nodes = getNodesToWatch();
    LOG.debug("Znodes to watch: " + nodes);
{code}

There are no guards around this debug statement, so the entire list of nodes is 
always turned into a string and passed to the {{debug}} method,... and then 
promptly discarded if debug is not enabled.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to