You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ad...@apache.org on 2020/04/24 11:32:05 UTC
[hadoop-ozone] branch master updated: HDDS-3373. Intermittent
failure in TestOMRatisLogParser (#867)
This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/master by this push:
new ab0e66e HDDS-3373. Intermittent failure in TestOMRatisLogParser (#867)
ab0e66e is described below
commit ab0e66e8edd71435dfa125766cbe53eb9fc374bf
Author: Doroszlai, Attila <64...@users.noreply.github.com>
AuthorDate: Fri Apr 24 13:31:53 2020 +0200
HDDS-3373. Intermittent failure in TestOMRatisLogParser (#867)
---
.../org/apache/hadoop/ozone/om/parser/TestOMRatisLogParser.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/parser/TestOMRatisLogParser.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/parser/TestOMRatisLogParser.java
index 83b1984..88cfc62 100644
--- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/parser/TestOMRatisLogParser.java
+++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/parser/TestOMRatisLogParser.java
@@ -95,18 +95,20 @@ public class TestOMRatisLogParser {
Assert.assertTrue(omMetaDir.isDirectory());
String[] ratisDirs = omMetaDir.list();
- File groupDir = null;
-
+ Assert.assertNotNull(ratisDirs);
Assert.assertEquals(2, ratisDirs.length);
+ File groupDir = null;
for (int i=0; i< ratisDirs.length; i++) {
if (ratisDirs[i].equals("snapshot")) {
continue;
}
- groupDir = new File(omMetaDir, omMetaDir.list()[1]);
+ groupDir = new File(omMetaDir, ratisDirs[i]);
}
Assert.assertNotNull(groupDir);
+ Assert.assertFalse(groupDir.toString(),
+ groupDir.getName().contains("snapshot"));
Assert.assertTrue(groupDir.isDirectory());
File currentDir = new File(groupDir, "current");
File logFile = new File(currentDir, "log_inprogress_0");
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-commits-help@hadoop.apache.org