Apache Nutch is an extensible and scalable web crawler
NUTCH-1766
Julien Nioche87b26de4969f
diff --git a/CHANGES.txt b/CHANGES.txtindex 5f8a8eb9c..a0f44582d 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change LogNutch Current Development+* NUTCH-1766 Generator to unlock crawldb and remove tempdir if generate job fails (Diaa via jnioche)+* NUTCH-207 Bandwidth target for fetcher rather than a thread count (jnioche)* NUTCH-1182 fetcher to log hung threads (snagel)diff --git a/src/java/org/apache/nutch/crawl/Generator.java b/src/java/org/apache/nutch/crawl/Generator.javaindex 2708745a2..f0568fd0f 100644--- a/src/java/org/apache/nutch/crawl/Generator.java+++ b/src/java/org/apache/nutch/crawl/Generator.java@@ -547,6 +547,8 @@ public class Generator extends Configured implements Tool {try {JobClient.runJob(job);} catch (IOException e) {+ LockUtil.removeLockFile(fs, lock);+ fs.delete(tempDir, true);throw e;}