Explorar o código

HDFS-14779. Fix logging error in TestEditLog#testMultiStreamsLoadEditWithConfMaxTxns

Jonathan Hung %!s(int64=5) %!d(string=hai) anos
pai
achega
8ab7020e64

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestEditLog.java

@@ -366,7 +366,7 @@ public class TestEditLog {
           readFsImage.loadEdits(editStreams, namesystem, 100, null, null);
           readFsImage.loadEdits(editStreams, namesystem, 100, null, null);
         } catch (Exception e){
         } catch (Exception e){
           LOG.error("There appears to be an out-of-order edit in the edit log",
           LOG.error("There appears to be an out-of-order edit in the edit log",
-                  e.getMessage());
+              e);
           fail("no exception should be thrown");
           fail("no exception should be thrown");
         } finally {
         } finally {
           if (readFsImage != null) {
           if (readFsImage != null) {