You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by an...@apache.org on 2019/02/13 06:19:22 UTC
[hive] branch master updated: HIVE-21250 : NPE in
HiveProtoLoggingHook for eventPerFile mode. (Harish JP,
reviewd by Anishek Agarwal)
This is an automated email from the ASF dual-hosted git repository.
anishek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new 5db4c77 HIVE-21250 : NPE in HiveProtoLoggingHook for eventPerFile mode. (Harish JP, reviewd by Anishek Agarwal)
5db4c77 is described below
commit 5db4c77699ff2adeb30ef2d8ea038cfbd9035d99
Author: Anishek Agarwal <an...@gmail.com>
AuthorDate: Wed Feb 13 11:49:14 2019 +0530
HIVE-21250 : NPE in HiveProtoLoggingHook for eventPerFile mode. (Harish JP, reviewd by Anishek Agarwal)
---
ql/src/java/org/apache/hadoop/hive/ql/hooks/HiveProtoLoggingHook.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/hooks/HiveProtoLoggingHook.java b/ql/src/java/org/apache/hadoop/hive/ql/hooks/HiveProtoLoggingHook.java
index 3d51c07..ec00ab6 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/hooks/HiveProtoLoggingHook.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/hooks/HiveProtoLoggingHook.java
@@ -305,10 +305,10 @@ public class HiveProtoLoggingHook implements ExecuteWithHookContext {
for (int retryCount = 0; retryCount <= MAX_RETRIES; ++retryCount) {
try {
if (eventPerFile) {
- LOG.debug("Event per file enabled. Closing proto event file: {}", writer.getPath());
if (!maybeRolloverWriterForDay()) {
writer = logger.getWriter(logFileName + "_" + ++logFileCount);
}
+ LOG.debug("Event per file enabled. New proto event file: {}", writer.getPath());
writer.writeProto(event);
IOUtils.closeQuietly(writer);
writer = null;