Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-1842

crawl.gen.delay has a wrong default value in nutch-default.xml or is being parsed incorrectly

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.16
    • Component/s: generator
    • Labels:
      None

      Description

      this is from nutch-default.xml:

      <property>
      <name>crawl.gen.delay</name>
      <value>604800000</value>
      <description>
      This value, expressed in milliseconds, defines how long we should keep the lock on records
      in CrawlDb that were just selected for fetching. If these records are not updated
      in the meantime, the lock is canceled, i.e. they become eligible for selecting.
      Default value of this is 7 days (604800000 ms).
      </description>
      </property>

      this is the from o.a.n.crawl.Generator.configure(JobConf job)

      genDelay = job.getLong(GENERATOR_DELAY, 7L) * 3600L * 24L * 1000L;

      the value in config file is in milliseconds but the code expect it to be in days. I reported this couple of years ago on the mailing list as well. I didn't post a patch becaue I am not sure which one needs to be fixed. considering all the other values in config file are in milliseconds it can be argued to that consistency matters, but 'day' is a much more reasonable unit for this property.

      Also this value is not being used in 2.x ?

        Attachments

          Activity

            People

            • Assignee:
              snagel Sebastian Nagel
              Reporter:
              kaveh kaveh minooie

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment