You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ae...@apache.org on 2019/08/13 21:46:58 UTC
[hadoop] branch trunk updated: HDDS-1886. Use ArrayList#clear to
address audit failure scenario
This is an automated email from the ASF dual-hosted git repository.
aengineer pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 689a80d HDDS-1886. Use ArrayList#clear to address audit failure scenario
689a80d is described below
commit 689a80d3ce310c3b617537550a529b9a1dc80f4b
Author: dchitlangia <di...@gmail.com>
AuthorDate: Thu Aug 1 02:06:03 2019 -0400
HDDS-1886. Use ArrayList#clear to address audit failure scenario
Signed-off-by: Anu Engineer <ae...@apache.org>
---
.../test/java/org/apache/hadoop/ozone/audit/TestOzoneAuditLogger.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hadoop-hdds/common/src/test/java/org/apache/hadoop/ozone/audit/TestOzoneAuditLogger.java b/hadoop-hdds/common/src/test/java/org/apache/hadoop/ozone/audit/TestOzoneAuditLogger.java
index 77a6c0b..518ddae 100644
--- a/hadoop-hdds/common/src/test/java/org/apache/hadoop/ozone/audit/TestOzoneAuditLogger.java
+++ b/hadoop-hdds/common/src/test/java/org/apache/hadoop/ozone/audit/TestOzoneAuditLogger.java
@@ -153,7 +153,7 @@ public class TestOzoneAuditLogger {
assertTrue(lines.size() != 0);
assertTrue(expected.equalsIgnoreCase(lines.get(0)));
//empty the file
- lines.remove(0);
+ lines.clear();
FileUtils.writeLines(file, lines, false);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org