mneethiraj commented on code in PR #277:
URL: https://github.com/apache/ranger/pull/277#discussion_r1287580726
##########
agents-audit/src/main/java/org/apache/ranger/audit/utils/RangerJSONAuditWriter.java:
##########
@@ -108,16 +108,16 @@ public PrintWriter run() throws Exception {
// flush and check the stream for errors
if (out.checkError()) {
// In theory, this count may NOT be accurate as part of the
messages may have been successfully written.
- // However, in practice, since client does buffering, either
all of none would succeed.
+ // However, in practice, since client does buffer-ing, either
all or none would succeed.
out.close();
- closeWriter();
Review Comment:
Not calling `closeWriter()` here will result in subsequent call to
`getLogFileStream()` to return the same `PrintWriter` closed in line #112 above
- from `AbstractRangerAuditWriter.createWriter()`. Please review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]