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

ARG_SEGMENT usage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.13
    • 1.15
    • metadata
    • None
    • Patch Available
    • Patch

    Description

      The class metadata/Nutch.java public static final String ARG_SEGMENT = "segment" is not used correctly. In some cases Fetcher and ParseSegment it is interpreted as a single segmenet, in others CrawlDb, LinkDb, IndexingJob as an array of segments. Such misunderstanding leads to inconsistency of usage of the parameter.

      After a discussion with wastl-nagel the proposed solution is to allow the usage of both array and a string in all cases. That gives an opportunity to not introduce the broken changes.

      A path is proposed.

      *The question left is refactoring, all these five components share the same code(two versions of the same code to be precise). Shouldn't we extract a method and reduce duplicates? *

      Attachments

        1. metadataARG_SEGMENT.patch
          6 kB
          Semyon Semyonov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              semyon.semyonov@mail.com Semyon Semyonov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: