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

Prerna Satija resolved NUTCH-2094.
----------------------------------
    Resolution: Fixed

I fixed this issue on line 57 of NutchServerPoolExecutor.java.

Instead of this line
  runningWorkers.remove(((JobWorker) runnable).getInfo());

I have put 
  runningWorkers.remove(((JobWorker) runnable));

This was a bug in Nutch 2.3 code as runningWorkers is a queue of JobWorker type 
so only an object of type JobWorker should be removed from the queue and not 
jobWorker.getInfo() because that will remove JobInfo type of object from 
runningWorkers queue.

> When stopping a crawl in Nutch 2.3, I was having trouble when I start an 
> already stopped crawl and then stop it again. 
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: NUTCH-2094
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2094
>             Project: Nutch
>          Issue Type: Bug
>            Reporter: Prerna Satija
>
> I have created a stop button in Nutch webapp to stop a running crawl from the 
> UI on click of a "stop" button. While testing, I found that I am able to stop 
> a crawl successfully but when I restart a stopped crawl and try to stop it, 
> it doesn't stop. 



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

Reply via email to