accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From keith-turner <>
Subject [GitHub] accumulo pull request #270: ACCUMULO-4657 Reduce excessive logging / logging...
Date Mon, 19 Jun 2017 19:39:38 GMT
Github user keith-turner commented on a diff in the pull request:
    --- Diff: server/base/src/main/java/org/apache/accumulo/server/util/
    @@ -894,12 +894,19 @@ public static void removeBulkLoadEntries(Connector conn, String
tableId, long ti
             BatchWriter bw = conn.createBatchWriter(MetadataTable.NAME, new BatchWriterConfig()))
           mscanner.setRange(new KeyExtent(tableId, null, null).toMetadataRange());
    +      boolean shouldTrace = log.isTraceEnabled();
    +      String tidString = Long.toString(tid);
    --- End diff --
    This is a nice optimization.  Could take it a step further and convert the string to a
byte array and compare (using Arrays class) byte arrays in the loop.  This avoids converting
each vals byte array to a string in the loop. 

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message