[ 
https://issues.apache.org/jira/browse/NUTCH-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14151287#comment-14151287
 ] 

Nima Falaki commented on NUTCH-1848:
------------------------------------

I believe I have fixed this issue. I have included a patch. I tested it and it 
worked for me.

When I was investigating this issue, I found that the number of job instances 
that were running were due to NutchStatus.getRunningJobs().size

Therefore in the response package org.apache.nutch.api.model.response package I 
noticed that the jobs with state failed or finished were still being included 
in the Collection<JobInfo> runningJobs collection, so jobs that had been 
completed or jobs that had failed and no longer are working were still being 
counted as a running job!

So I just created a private method which removed these finished or failed jobs 
from the collection. My patch is attached. What do you think?

> Bug in DashboardPage.html instances counter
> -------------------------------------------
>
>                 Key: NUTCH-1848
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1848
>             Project: Nutch
>          Issue Type: Bug
>          Components: web gui
>    Affects Versions: 2.3
>            Reporter: Lewis John McGibbney
>            Assignee: Nima Falaki
>             Fix For: 2.4
>
>         Attachments: Screen Shot 2014-09-22 at 4.59.26 PM.png, 
> fixJobsRunningDashboard.patch
>
>
> When I run crawls from the WebApp, I am experiencing an irregularly 
> increasing Instance counter. Please see attachment for an example. It should 
> be noted that in this example I have no crawling instances running.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to