flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From esam...@apache.org
Subject svn commit: r1156884 - /incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/core/ChannelDriver.java
Date Fri, 12 Aug 2011 00:47:09 GMT
Author: esammer
Date: Fri Aug 12 00:47:09 2011
New Revision: 1156884

URL: http://svn.apache.org/viewvc?rev=1156884&view=rev
Log:
- Log interrupts received while cleaning up during exceptions.

Modified:
    incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/core/ChannelDriver.java

Modified: incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/core/ChannelDriver.java
URL: http://svn.apache.org/viewvc/incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/core/ChannelDriver.java?rev=1156884&r1=1156883&r2=1156884&view=diff
==============================================================================
--- incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/core/ChannelDriver.java
(original)
+++ incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/core/ChannelDriver.java
Fri Aug 12 00:47:09 2011
@@ -271,6 +271,8 @@ public class ChannelDriver implements Li
         try {
           sink.close(context);
         } catch (InterruptedException e1) {
+          logger
+              .error("Interrupted while trying to close the sink (because we were interrupted
while trying to open the source)");
           Thread.currentThread().interrupt();
         } catch (LifecycleException e1) {
           logger
@@ -289,6 +291,8 @@ public class ChannelDriver implements Li
         try {
           sink.close(context);
         } catch (InterruptedException e1) {
+          logger
+              .error("Interrupted while trying to close the sink (because we were cleaning
up from a lifecycle exception from opening the source.)");
           Thread.currentThread().interrupt();
         } catch (LifecycleException e1) {
           logger



Mime
View raw message