You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Prerna Satija (JIRA)" <ji...@apache.org> on 2015/09/11 20:23:46 UTC

[jira] [Resolved] (NUTCH-2094) When stopping a crawl in Nutch 2.3, I was having trouble when I start an already stopped crawl and then stop it again.

     [ 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)