[jira] [Updated] (NUTCH-2461) Generate passes the data to when maxCount == 0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (NUTCH-2461) Generate passes the data to when maxCount == 0

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/NUTCH-2461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Semyon Semyonov updated NUTCH-2461:
-----------------------------------
    Summary: Generate passes the data to when maxCount  == 0  (was: Generate pass the data to when maxCount  == 0)

> Generate passes the data to when maxCount  == 0
> -----------------------------------------------
>
>                 Key: NUTCH-2461
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2461
>             Project: Nutch
>          Issue Type: Bug
>          Components: generator
>    Affects Versions: 1.14
>            Reporter: Semyon Semyonov
>            Priority: Critical
>             Fix For: 1.14
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)