accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject [accumulo] branch 2.0 updated: Log status times to debug log (#1067)
Date Tue, 28 May 2019 18:47:39 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/2.0 by this push:
     new 3b010ca  Log status times to debug log (#1067)
3b010ca is described below

commit 3b010ca9595db69ccf6886c12572e35ef8e18613
Author: Adam Lerman <alerman@gmail.com>
AuthorDate: Mon Apr 1 15:28:27 2019 +0000

    Log status times to debug log (#1067)
---
 .../master/src/main/java/org/apache/accumulo/master/Master.java  | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/server/master/src/main/java/org/apache/accumulo/master/Master.java b/server/master/src/main/java/org/apache/accumulo/master/Master.java
index 30c284a..4eef033 100644
--- a/server/master/src/main/java/org/apache/accumulo/master/Master.java
+++ b/server/master/src/main/java/org/apache/accumulo/master/Master.java
@@ -910,13 +910,20 @@ public class Master extends AbstractServer
           Thread t = Thread.currentThread();
           String oldName = t.getName();
           try {
-            t.setName("Getting status from " + server);
+            String message = "Getting status from " + server;
+            t.setName(message);
+            long startForServer = System.currentTimeMillis();
+            log.debug(message);
             TServerConnection connection1 = tserverSet.getConnection(server);
             if (connection1 == null) {
               throw new IOException("No connection to " + server);
             }
             TabletServerStatus status = connection1.getTableMap(false);
             result.put(server, status);
+
+            long duration = System.currentTimeMillis() - startForServer;
+            log.debug("Got status from {} in {} ms", server, duration);
+
           } finally {
             t.setName(oldName);
           }


Mime
View raw message