Repository: ranger Updated Branches: refs/heads/ranger-0.7 1686d4718 -> 2fe9797ae
RANGER-2249:Ranger Audit not flushed immediately to hdfs Signed-off-by: rmani <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/2fe9797a Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/2fe9797a Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/2fe9797a Branch: refs/heads/ranger-0.7 Commit: 2fe9797ae6dd801547699a7d334cb1fca8571afc Parents: 1686d47 Author: rmani <[email protected]> Authored: Thu Oct 11 17:51:11 2018 -0700 Committer: rmani <[email protected]> Committed: Fri Oct 12 11:39:07 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/2fe9797a/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 8b17fc5..5cf7e08 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 @@ -180,7 +180,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());
