ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colm O hEigeartaigh (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (RANGER-1776) ranger-plugin-audit always show error.
Date Thu, 14 Sep 2017 10:31:00 GMT

     [ https://issues.apache.org/jira/browse/RANGER-1776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Colm O hEigeartaigh resolved RANGER-1776.
-----------------------------------------
    Resolution: Fixed

> ranger-plugin-audit always show error.
> --------------------------------------
>
>                 Key: RANGER-1776
>                 URL: https://issues.apache.org/jira/browse/RANGER-1776
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>    Affects Versions: master
>            Reporter: peng.jianhua
>            Assignee: peng.jianhua
>             Fix For: 1.0.0
>
>         Attachments: 0001-RANGER_1776-ranger-plugin-audit-show-log-error.patch
>
>
> Ranger always show error , the reason is logJSON always return false :
> {code}
> AuditFileSpool.java
> ret = consumerProvider.logJSON(lines);
> 			if (!ret) {
> 				// Need to log error after fixed interval
> 				logError("Error sending logs to consumer. provider="
> 						+ queueProvider.getName() + ", consumer="
> 						+ consumerProvider.getName());
> 			} else {
>                            .... .... 
>                         }
> {code}
> {code}
> BufferedAuditProvider.java
>        @Override
> 	public boolean logJSON(Collection<String> events) {
> 		boolean ret = true;
> 		for (String event : events) {
> 			ret = logJSON(event);
> 			if (!ret) {
> 				break;
> 			}
> 		}
> 		return false;
> 	}
> {code}
> Here should return ret.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message