You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Jonathan Hung (Jira)" <ji...@apache.org> on 2019/08/26 23:56:00 UTC

[jira] [Commented] (HDFS-14779) Fix logging error in TestEditLog#testMultiStreamsLoadEditWithConfMaxTxns

    [ https://issues.apache.org/jira/browse/HDFS-14779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16916235#comment-16916235 ] 

Jonathan Hung commented on HDFS-14779:
--------------------------------------

attached 001 patch which adds exception to log message instead of exception's message. This will work for both slf4j (branch-3.2 and up) as well as o.a.commons.logging (branch-3.1 and lower)
[~vagarychen] can you take a look? Thanks!

> Fix logging error in TestEditLog#testMultiStreamsLoadEditWithConfMaxTxns
> ------------------------------------------------------------------------
>
>                 Key: HDFS-14779
>                 URL: https://issues.apache.org/jira/browse/HDFS-14779
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Jonathan Hung
>            Assignee: Jonathan Hung
>            Priority: Major
>         Attachments: HDFS-14779.001.patch
>
>
> {noformat}[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project hadoop-hdfs: Compilation failure
> [ERROR] /Users/jhung/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestEditLog.java:[364,31] incompatible types: java.lang.String cannot be converted to java.lang.Throwable
> [ERROR] {noformat}
> Logger changed from o.a.commons.logging.Log to slf4j logger in branch-3.2 (ref: HDFS-13695), so HDFS-14674 did not apply cleanly to branch-3.1.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org