ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject ranger git commit: RANGER-2249:Ranger Audit not flushed immediately to hdfs
Date Fri, 12 Oct 2018 17:44:25 GMT
Repository: ranger
Updated Branches:
  refs/heads/ranger-1.1 b2ff03c4f -> 327bd905b


RANGER-2249:Ranger Audit not flushed immediately to hdfs

Signed-off-by: rmani <rmani@hortonworks.com>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/327bd905
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/327bd905
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/327bd905

Branch: refs/heads/ranger-1.1
Commit: 327bd905bb3a670352e0c0587bc6c0dc2b1406ce
Parents: b2ff03c
Author: rmani <rmani@hortonworks.com>
Authored: Thu Oct 11 17:51:11 2018 -0700
Committer: rmani <rmani@hortonworks.com>
Committed: Fri Oct 12 10:44:19 2018 -0700

----------------------------------------------------------------------
 .../org/apache/ranger/audit/destination/HDFSAuditDestination.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/327bd905/agents-audit/src/main/java/org/apache/ranger/audit/destination/HDFSAuditDestination.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/org/apache/ranger/audit/destination/HDFSAuditDestination.java
b/agents-audit/src/main/java/org/apache/ranger/audit/destination/HDFSAuditDestination.java
index 66d8504..01fc5e7 100644
--- a/agents-audit/src/main/java/org/apache/ranger/audit/destination/HDFSAuditDestination.java
+++ b/agents-audit/src/main/java/org/apache/ranger/audit/destination/HDFSAuditDestination.java
@@ -178,7 +178,7 @@ public class HDFSAuditDestination extends AuditDestination {
 		} finally {
 			logger.info("Flushing HDFS audit. Event Size:" + events.size());
 			if (out != null) {
-				out.flush();
+				flush();
 			}
 		}
 		addSuccessCount(events.size());


Mime
View raw message