You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by dl...@apache.org on 2022/08/01 13:26:27 UTC
[accumulo] branch main updated: Don't log full stack trace by default when unable to load compression codec (#2836)
This is an automated email from the ASF dual-hosted git repository.
dlmarion pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push:
new b049beefd6 Don't log full stack trace by default when unable to load compression codec (#2836)
b049beefd6 is described below
commit b049beefd63c078769455b19adb31ae9e519ebbe
Author: Dave Marion <dl...@apache.org>
AuthorDate: Mon Aug 1 09:26:21 2022 -0400
Don't log full stack trace by default when unable to load compression codec (#2836)
Closes #2835
---
.../apache/accumulo/core/file/rfile/bcfile/CompressionAlgorithm.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/CompressionAlgorithm.java b/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/CompressionAlgorithm.java
index b049b8e5a6..a82dd8a825 100644
--- a/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/CompressionAlgorithm.java
+++ b/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/CompressionAlgorithm.java
@@ -297,7 +297,10 @@ public class CompressionAlgorithm extends Configured {
updateBuffer(config, bufferSizeConfigOpt, bufferSize);
return (CompressionCodec) ReflectionUtils.newInstance(Class.forName(clazz), config);
} catch (ClassNotFoundException e) {
- LOG.debug("Unable to load codec class {} for {}", clazz, codecClazzProp, e);
+ LOG.debug(
+ "ClassNotFoundException creating codec class {} for {}. Enable trace logging for stacktrace.",
+ clazz, codecClazzProp);
+ LOG.trace("Unable to load codec class due to ", e);
}
return null;
}