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

Generate passes the data to when maxCount == 0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.14
    • Fix Version/s: 1.15
    • Component/s: generator
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: