From 2f42b768a306876eabe0e05a362523d1790926a9 Mon Sep 17 00:00:00 2001 From: nkeywal Date: Tue, 13 Nov 2012 17:35:31 +0000 Subject: [PATCH] HBASE-6356 printStackTrace in FSUtils (Gustavo Anatoly) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1408851 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/hadoop/hbase/util/FSUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java index e7c0934b3a6..f6c288678d9 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java @@ -942,7 +942,8 @@ public abstract class FSUtils { isValid = this.fs.getFileStatus(p).isDir(); } } catch (IOException e) { - e.printStackTrace(); + LOG.warn("An error occurred while verifying if [" + p.toString() + + "] is a valid directory. Returning 'not valid' and continuing.", e); } return isValid; }