keith-turner closed pull request #384: ACCUMULO-4789 Avoid creating expensive thread name URL: https://github.com/apache/accumulo/pull/384
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/core/src/main/java/org/apache/accumulo/core/client/impl/ThriftScanner.java b/core/src/main/java/org/apache/accumulo/core/client/impl/ThriftScanner.java index 4f38e0cfad..b7b1c6732c 100644 --- a/core/src/main/java/org/apache/accumulo/core/client/impl/ThriftScanner.java +++ b/core/src/main/java/org/apache/accumulo/core/client/impl/ThriftScanner.java @@ -414,11 +414,12 @@ else if (log.isTraceEnabled()) scanState.prevLoc = loc; if (scanState.scanID == null) { - String msg = "Starting scan tserver=" + loc.tablet_location + " tablet=" + loc.tablet_extent + " range=" + scanState.range + " ssil=" - + scanState.serverSideIteratorList + " ssio=" + scanState.serverSideIteratorOptions; - Thread.currentThread().setName(msg); + + Thread.currentThread().setName("Starting scan tserver=" + loc.tablet_location + " tableId=" + loc.tablet_extent.getTableId()); if (log.isTraceEnabled()) { + String msg = "Starting scan tserver=" + loc.tablet_location + " tablet=" + loc.tablet_extent + " range=" + scanState.range + " ssil=" + + scanState.serverSideIteratorList + " ssio=" + scanState.serverSideIteratorOptions; log.trace("tid={} {}", Thread.currentThread().getId(), msg); timer = new OpTimer().start(); } ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services