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

Generate passes the data to when maxCount == 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.14
    • 1.15
    • generator
    • None

    Description

      The generator checks condition
      if (maxCount > 0) : line 421 and stop the generation when amount per host exceeds maxCount( continue : line 455)
      but when maxCount == 0 it goes directly to line 465 :output.collect(key, entry);

      It is obviously not correct, the correct solution would be to add
      if(maxCount == 0)

      { continue; }

      at line 380.

      Attachments

        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: