oozie-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asasv...@apache.org
Subject oozie git commit: OOZIE-3021 Error on job or SLA event listening: WARN logs instead of DEBUG
Date Wed, 02 Aug 2017 10:03:02 GMT
Repository: oozie
Updated Branches:
  refs/heads/master d6d34022b -> 5c7210362


OOZIE-3021 Error on job or SLA event listening: WARN logs instead of DEBUG


Project: http://git-wip-us.apache.org/repos/asf/oozie/repo
Commit: http://git-wip-us.apache.org/repos/asf/oozie/commit/5c721036
Tree: http://git-wip-us.apache.org/repos/asf/oozie/tree/5c721036
Diff: http://git-wip-us.apache.org/repos/asf/oozie/diff/5c721036

Branch: refs/heads/master
Commit: 5c72103624d1f40a9bf4059511b56c7719095dcc
Parents: d6d3402
Author: Attila Sasvari <asasvari@cloudera.com>
Authored: Wed Aug 2 11:59:12 2017 +0200
Committer: Attila Sasvari <asasvari@cloudera.com>
Committed: Wed Aug 2 11:59:12 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/oozie/service/EventHandlerService.java    | 7 +++++++
 release-log.txt                                               | 1 +
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/oozie/blob/5c721036/core/src/main/java/org/apache/oozie/service/EventHandlerService.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/oozie/service/EventHandlerService.java b/core/src/main/java/org/apache/oozie/service/EventHandlerService.java
index a68f94f..95508ec 100644
--- a/core/src/main/java/org/apache/oozie/service/EventHandlerService.java
+++ b/core/src/main/java/org/apache/oozie/service/EventHandlerService.java
@@ -30,6 +30,7 @@ import java.util.Set;
 
 import org.apache.hadoop.conf.Configuration;
 import org.apache.oozie.ErrorCode;
+import org.apache.oozie.action.hadoop.PasswordMasker;
 import org.apache.oozie.client.event.Event;
 import org.apache.oozie.client.event.Event.MessageType;
 import org.apache.oozie.client.event.JobEvent;
@@ -254,6 +255,9 @@ public class EventHandlerService implements Service {
                                 catch (Throwable error) {
                                     XLog.getLog(EventHandlerService.class).debug("Throwable
in EventWorker thread run : ",
                                             error);
+                                    XLog.getLog(EventHandlerService.class).warn("Throwable
in EventWorker thread run. " +
+                                                    "Error message: {0}",
+                                            new PasswordMasker().maskPasswordsIfNecessary(error.getMessage()));
                                 }
                             }
                         }
@@ -263,6 +267,9 @@ public class EventHandlerService implements Service {
             catch (Throwable error) {
                 XLog.getLog(EventHandlerService.class).debug("Throwable in EventWorker thread
run : ",
                         error);
+                XLog.getLog(EventHandlerService.class).warn("Throwable in EventWorker thread
run. " +
+                                "Error message: {0}",
+                        new PasswordMasker().maskPasswordsIfNecessary(error.getMessage()));
             }
         }
 

http://git-wip-us.apache.org/repos/asf/oozie/blob/5c721036/release-log.txt
----------------------------------------------------------------------
diff --git a/release-log.txt b/release-log.txt
index 044119a..1fe5e71 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -1,5 +1,6 @@
 -- Oozie 5.0.0 release (trunk - unreleased)
 
+OOZIE-3021 Error on job or SLA event listening: WARN logs instead of DEBUG
 OOZIE-2931 Fix warnings during build for "no @param for" (Artem Ervits via gezapeti)
 OOZIE-2974 Change TestLiteWorkflowAppParser so that it works with Hadoop 3 (asasvari via
gezapeti)
 OOZIE-2977 Fix javafoc error: self-closing element not allowed (Artem Ervits via gezapeti)


Mime
View raw message