Apache Nutch is an extensible and scalable web crawler
Fix a bug resulting from over-eager optimization in NUTCH-761.
Andrzej Bialeckiaea8428bb740
diff --git a/src/java/org/apache/nutch/crawl/CrawlDbReducer.java b/src/java/org/apache/nutch/crawl/CrawlDbReducer.javaindex 7e64fa576..8426d71ba 100644--- a/src/java/org/apache/nutch/crawl/CrawlDbReducer.java+++ b/src/java/org/apache/nutch/crawl/CrawlDbReducer.java@@ -42,8 +42,6 @@ public class CrawlDbReducer implements Reducer<Text, CrawlDatum, Text, CrawlDatuprivate boolean additionsAllowed;private int maxInterval;private FetchSchedule schedule;- private CrawlDatum fetch = new CrawlDatum();- private CrawlDatum old = new CrawlDatum();public void configure(JobConf job) {retryMax = job.getInt("db.fetch.retry.max", 3);@@ -61,6 +59,9 @@ public class CrawlDbReducer implements Reducer<Text, CrawlDatum, Text, CrawlDatuOutputCollector<Text, CrawlDatum> output, Reporter reporter)throws IOException {+ CrawlDatum fetch = new CrawlDatum();+ CrawlDatum old = new CrawlDatum();+boolean fetchSet = false;boolean oldSet = false;byte[] signature = null;