nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prerna Satija (JIRA)" <j...@apache.org>
Subject [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.
Date Fri, 11 Sep 2015 18:23:46 GMT

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

Mime
View raw message