You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by cs...@apache.org on 2023/05/14 17:39:48 UTC

[accumulo] branch 2.1 updated: Include missing stack trace when logging error (#3398)

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

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


The following commit(s) were added to refs/heads/2.1 by this push:
     new 7782766fb5 Include missing stack trace when logging error (#3398)
7782766fb5 is described below

commit 7782766fb500fac5c294c84f20fcfeb8dfbccab3
Author: Christopher L. Shannon <ch...@gmail.com>
AuthorDate: Sun May 14 17:39:42 2023 +0000

    Include missing stack trace when logging error (#3398)
    
    Update the log message for InterruptedException inside the Tablet class
    to include the full stack trace as it is logged at the error level.
    
    Co-authored-by: EdColeman <de...@etcoleman.com>
    Co-authored-by: Christopher Tubbs <ct...@apache.org>
    
    ---------
    
    Co-authored-by: EdColeman <de...@etcoleman.com>
    Co-authored-by: Christopher Tubbs <ct...@apache.org>
---
 .../src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java b/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java
index 56ad6e1c89..9a040cdb2a 100644
--- a/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java
+++ b/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java
@@ -984,7 +984,7 @@ public class Tablet extends TabletBase {
             activeScans.size());
         this.wait(50);
       } catch (InterruptedException e) {
-        log.error(e.toString());
+        log.error("Interrupted waiting to completeClose for extent {}", extent, e);
       }
     }