chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asrab...@apache.org
Subject svn commit: r900935 - /hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/ExecAdaptor.java
Date Tue, 19 Jan 2010 20:01:51 GMT
Author: asrabkin
Date: Tue Jan 19 20:01:50 2010
New Revision: 900935

URL: http://svn.apache.org/viewvc?rev=900935&view=rev
Log:
CHUKWA-420. Use default: in ExecAdaptor.shutdown()

Modified:
    hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/ExecAdaptor.java

Modified: hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/ExecAdaptor.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/ExecAdaptor.java?rev=900935&r1=900934&r2=900935&view=diff
==============================================================================
--- hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/ExecAdaptor.java
(original)
+++ hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/ExecAdaptor.java
Tue Jan 19 20:01:50 2010
@@ -135,10 +135,6 @@
        throws AdaptorException {
      log.info("Enter Shutdown:" + shutdownPolicy.name()+ " - ObjectId:" + this);
      switch(shutdownPolicy) {
-     case HARD_STOP :
-       timer.cancel();
-       exec.stop();
-       break;
      case GRACEFULLY :
      case WAIT_TILL_FINISHED :
        try {
@@ -146,7 +142,11 @@
          exec.waitFor();
        } catch (InterruptedException e) {
       }
-      break;
+      break;   
+      default:
+        timer.cancel();
+        exec.stop();
+        break;
     }
     log.info("Exist Shutdown:" + shutdownPolicy.name()+ " - ObjectId:" + this);
     return sendOffset;



Mime
View raw message