chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asrab...@apache.org
Subject svn commit: r783980 - in /hadoop/chukwa/trunk: CHANGES.txt src/java/org/apache/hadoop/chukwa/datacollection/collector/CollectorStub.java
Date Fri, 12 Jun 2009 04:27:36 GMT
Author: asrabkin
Date: Fri Jun 12 04:27:36 2009
New Revision: 783980

URL: http://svn.apache.org/viewvc?rev=783980&view=rev
Log:
CHUKWA-287. Fix collector crash when no args. Contributed by Eric Yang.

Modified:
    hadoop/chukwa/trunk/CHANGES.txt
    hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/collector/CollectorStub.java

Modified: hadoop/chukwa/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/CHANGES.txt?rev=783980&r1=783979&r2=783980&view=diff
==============================================================================
--- hadoop/chukwa/trunk/CHANGES.txt (original)
+++ hadoop/chukwa/trunk/CHANGES.txt Fri Jun 12 04:27:36 2009
@@ -60,6 +60,8 @@
 
   BUG FIXES
 
+    CHUKWA-287. Fix collector crash on startup when no args. (Eric Yang via asrabkin)
+
     CHUKWA-273. Agents correctly use configured collector port numbers. (asrabkin)
 
     CHUKWA-216. postProcess.sh should use HADOOP_CONF_DIR to find hadoop-site.xml. (Jerome
Boulon via asrabkin)

Modified: hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/collector/CollectorStub.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/collector/CollectorStub.java?rev=783980&r1=783979&r2=783980&view=diff
==============================================================================
--- hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/collector/CollectorStub.java
(original)
+++ hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/collector/CollectorStub.java
Fri Jun 12 04:27:36 2009
@@ -38,7 +38,7 @@
 
     DaemonWatcher.createInstance("Collector");
     try {
-      if (args.length > 0 && args[0].equalsIgnoreCase("help")|| args[0].equalsIgnoreCase("-help"))
{
+      if (args.length > 0 && (args[0].equalsIgnoreCase("help")|| args[0].equalsIgnoreCase("-help")))
{
         System.out.println("usage: Normally you should just invoke CollectorStub without
arguments.");
         System.out.println("A number of options can be specified here for debugging or special
uses.  e.g.: ");
         System.out.println("Options include:\n\tportno=<#> \n\t" + "writer=pretend
| <classname>"



Mime
View raw message