Apache Nutch is an extensible and scalable web crawler
NUTCH-516 - Next fetch time is not set when it is a CrawlDatum.STATUS_FETCH_GONE. Contributed by Emmanuel Joke.
Tacettin Guney9d273b9ba6bb
diff --git a/CHANGES.txt b/CHANGES.txtindex 6a427ddfc..921ac1799 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -96,6 +96,9 @@ Unreleased changes (1.0-dev)32. NUTCH-518 - Fix OpicScoringFilter to respect scoring filter chaining.(Enis Soztutar via dogacan)+33. NUTCH-516 - Next fetch time is not set when it is a+ CrawlDatum.STATUS_FETCH_GONE. (Emmanuel Joke via dogacan)+Release 0.9 - 2007-04-021. Changed log4j confiquration to log to stdout on commandlinediff --git a/src/java/org/apache/nutch/crawl/AbstractFetchSchedule.java b/src/java/org/apache/nutch/crawl/AbstractFetchSchedule.javaindex 3f8d7280a..8c5bae69c 100755--- a/src/java/org/apache/nutch/crawl/AbstractFetchSchedule.java+++ b/src/java/org/apache/nutch/crawl/AbstractFetchSchedule.java@@ -91,6 +91,7 @@ public abstract class AbstractFetchSchedule extends Configured implements FetchS// no page is truly GONE ... just increase the interval by 50%// and try much later.datum.setFetchInterval(datum.getFetchInterval() * 1.5f);+ datum.setFetchTime(fetchTime + Math.round(datum.getFetchInterval() * 1000.0d));if (maxInterval < datum.getFetchInterval()) forceRefetch(url, datum, false);return datum;}diff --git a/src/java/org/apache/nutch/crawl/DefaultFetchSchedule.java b/src/java/org/apache/nutch/crawl/DefaultFetchSchedule.javaindex 41f55458a..dcaeec758 100755--- a/src/java/org/apache/nutch/crawl/DefaultFetchSchedule.java+++ b/src/java/org/apache/nutch/crawl/DefaultFetchSchedule.java@@ -32,7 +32,7 @@ public class DefaultFetchSchedule extends AbstractFetchSchedule {public CrawlDatum setFetchSchedule(Text url, CrawlDatum datum,long prevFetchTime, long prevModifiedTime,long fetchTime, long modifiedTime, int state) {- datum.setFetchTime(fetchTime + Math.round(datum.getFetchInterval() * 1000.0f));+ datum.setFetchTime(fetchTime + Math.round(datum.getFetchInterval() * 1000.0d));datum.setModifiedTime(modifiedTime);return datum;}