chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asrab...@apache.org
Subject svn commit: r834586 - in /hadoop/chukwa/trunk: CHANGES.txt src/java/org/apache/hadoop/chukwa/util/PidFile.java
Date Tue, 10 Nov 2009 18:30:29 GMT
Author: asrabkin
Date: Tue Nov 10 18:30:29 2009
New Revision: 834586

URL: http://svn.apache.org/viewvc?rev=834586&view=rev
Log:
CHUKWA-414. Better error messaging for pid file errors. Contributed by Bill Graham.

Modified:
    hadoop/chukwa/trunk/CHANGES.txt
    hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/util/PidFile.java

Modified: hadoop/chukwa/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/CHANGES.txt?rev=834586&r1=834585&r2=834586&view=diff
==============================================================================
--- hadoop/chukwa/trunk/CHANGES.txt (original)
+++ hadoop/chukwa/trunk/CHANGES.txt Tue Nov 10 18:30:29 2009
@@ -16,6 +16,8 @@
 
   BUG FIXES
 
+    CHUKWA-414. Better error messaging for pid file errors. (Bill Graham via asrabkin)
+
     CHUKWA-411. Hosts for DataNode ClientTrace messages parsed incorrectly. (Jiaqi Tan via
asrabkin)
 
     CHUKWA-229. Fix file descriptor leak in ExecAdaptor. (asrabkin)  

Modified: hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/util/PidFile.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/util/PidFile.java?rev=834586&r1=834585&r2=834586&view=diff
==============================================================================
--- hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/util/PidFile.java (original)
+++ hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/util/PidFile.java Tue Nov 10 18:30:29
2009
@@ -71,10 +71,10 @@
       if (PidFile.lock != null) {
         log.debug("Initlization succeeded...");
       } else {
-        throw (new IOException());
+        throw (new IOException("Can not get lock on pid file: " + pidFilesb));
       }
     } catch (IOException ex) {
-      System.out.println("Initializaiton failed: can not write pid file.");
+      System.out.println("Initialization failed: can not write pid file to " + pidFilesb);
       log.error("Initialization failed...");
       log.error(ex.getMessage());
       System.exit(-1);



Mime
View raw message