Pārlūkot izejas kodu

MAPREDUCE-5609. Add debug log message when sending job end notification. (rkanter via tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1539476 13f79535-47bb-0310-9956-ffa450edef68
Alejandro Abdelnur 11 gadi atpakaļ
vecāks
revīzija
243e4cabc7

+ 3 - 0
CHANGES.txt

@@ -46,6 +46,9 @@ Release 1.3.0 - unreleased
     HDFS-5367. Restoring namenode storage locks namenode due to unnecessary
     fsimage write. (Jonh Zhao via suresh)
 
+    MAPREDUCE-5609. Add debug log message when sending job end notification. 
+    (rkanter via tucu)
+
   BUG FIXES
 
     HADOOP-9863. Backport HADOOP-8686 to support BigEndian on ppc64. 

+ 2 - 0
src/mapred/org/apache/hadoop/mapred/JobEndNotifier.java

@@ -49,6 +49,7 @@ public class JobEndNotifier {
           public void run() {
             try {
               while (running) {
+                LOG.debug("Pending notifications: " + queue.size());
                 sendNotification(queue.take());
               }
             }
@@ -61,6 +62,7 @@ public class JobEndNotifier {
 
           private void sendNotification(JobEndStatusInfo notification) {
             try {
+              LOG.debug("Sending notification [" + notification + "]");
               int code = httpNotification(notification.getUri(),
                   notification.getTimeout());
               if (code != 200) {