You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/08/28 15:08:11 UTC

[GitHub] [accumulo] EdColeman commented on a change in pull request #1339: Reduce merge operations logging of extent info at - issue #1338

EdColeman commented on a change in pull request #1339: Reduce merge operations logging of extent info at - issue #1338
URL: https://github.com/apache/accumulo/pull/1339#discussion_r318636010
 
 

 ##########
 File path: server/master/src/main/java/org/apache/accumulo/master/Master.java
 ##########
 @@ -872,8 +872,16 @@ TabletGoalState getGoalState(TabletLocationState tls, MergeInfo mergeInfo) {
       }
       // Handle merge transitions
       if (mergeInfo.getExtent() != null) {
-        log.debug("mergeInfo overlaps: " + extent + " " + mergeInfo.overlaps(extent));
-        if (mergeInfo.overlaps(extent)) {
+
+        final boolean overlaps = mergeInfo.overlaps(extent);
+
+        if (overlaps && log.isDebugEnabled()) {
 
 Review comment:
   I'll make a change.  The intent of the first if/else test for debug was so that if trace was enabled, there would only be one message - but looking at it now, this would not have had that effect.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services