You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by kt...@apache.org on 2018/02/14 21:31:54 UTC

[accumulo] branch 1.8 updated: ACCUMULO-4789 Avoid creating expensive thread name (#384)

This is an automated email from the ASF dual-hosted git repository.

kturner pushed a commit to branch 1.8
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/1.8 by this push:
     new 6f0fdb1  ACCUMULO-4789 Avoid creating expensive thread name (#384)
6f0fdb1 is described below

commit 6f0fdb124cdacf3aa2ebcbd2b146d4c4985346ca
Author: Keith Turner <ke...@deenlo.com>
AuthorDate: Wed Feb 14 16:31:52 2018 -0500

    ACCUMULO-4789 Avoid creating expensive thread name (#384)
---
 .../java/org/apache/accumulo/core/client/impl/ThriftScanner.java   | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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 4f38e0c..b7b1c67 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 @@ public class ThriftScanner {
       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();
         }

-- 
To stop receiving notification emails like this one, please contact
kturner@apache.org.