Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2911: Caught and added log for InterruptedException

prakharchaubef7705b95ff96
diff --git a/src/java/org/apache/nutch/fetcher/Fetcher.java b/src/java/org/apache/nutch/fetcher/Fetcher.java
index 9c299e60f..0eaee2db5 100644
--- a/src/java/org/apache/nutch/fetcher/Fetcher.java
+++ b/src/java/org/apache/nutch/fetcher/Fetcher.java
@@ -437,7 +437,11 @@ public class Fetcher extends NutchTool implements Tool {
} while (activeThreads.get() > 0);
LOG.info("-activeThreads={}", activeThreads);
} finally {
- cleanup(innerContext);
+ try {
+ cleanup(innerContext);
+ } catch (InterruptedException e) {
+ LOG.info("Clean up interrupted");
+ }
}
}
}