You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chukwa.apache.org by ey...@apache.org on 2012/05/28 02:28:22 UTC

svn commit: r1343117 - in /incubator/chukwa/trunk: CHANGES.txt src/main/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java

Author: eyang
Date: Mon May 28 00:28:21 2012
New Revision: 1343117

URL: http://svn.apache.org/viewvc?rev=1343117&view=rev
Log:
CHUKWA-640. Use timer thread to schedule adaptor registration. (Abhijit Dhar via Eric Yang)

Modified:
    incubator/chukwa/trunk/CHANGES.txt
    incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java

Modified: incubator/chukwa/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/chukwa/trunk/CHANGES.txt?rev=1343117&r1=1343116&r2=1343117&view=diff
==============================================================================
--- incubator/chukwa/trunk/CHANGES.txt (original)
+++ incubator/chukwa/trunk/CHANGES.txt Mon May 28 00:28:21 2012
@@ -14,7 +14,7 @@ Trunk (unreleased changes)
 
     CHUKWA-641. Fix stack trace for dumpChunk command when invalid regular expression is specified. (Eric Spishak via Eric Yang)
 
-    CHUKWA-640. Use timer thread to schedule adatpor registration. (Abhijit Dhar via Eric Yang)
+    CHUKWA-640. Use timer thread to schedule adaptor registration. (Abhijit Dhar via Eric Yang)
 
     CHUKWA-636. Updated dependency to HBase 0.92.0. (Eric Yang)
 

Modified: incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java
URL: http://svn.apache.org/viewvc/incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java?rev=1343117&r1=1343116&r2=1343117&view=diff
==============================================================================
--- incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java (original)
+++ incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java Mon May 28 00:28:21 2012
@@ -273,9 +273,10 @@ public class ChukwaAgentController {
                 + numRetries
                 + " retries remaining");
 
-        Timer addFileTimer = new Timer();
-        addFileTimer.schedule(new AddAdaptorTask(adaptorName, type, params,
-            offset, numRetries - 1, retryInterval), retryInterval);
+        AddAdaptorTask task = new AddAdaptorTask(adaptorName, type, params,
+            offset, numRetries - 1, retryInterval);
+        Timer timerThread = new Timer(true);		// set as daemon thread
+        timerThread.schedule(task, retryInterval);		
       }
     } else {
       System.err.println("Giving up on connecting to the local agent");