ASF GitHub Bot commented on NUTCH-2505:

sebastian-nagel closed pull request #282: fix for NUTCH-2505 contributed by 
URL: https://github.com/apache/nutch/pull/282

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/java/org/apache/nutch/crawl/Generator.java 
index 6c74aab73..d5aea1ca3 100644
--- a/src/java/org/apache/nutch/crawl/Generator.java
+++ b/src/java/org/apache/nutch/crawl/Generator.java
@@ -752,6 +752,7 @@ public Generator(Configuration conf) {
     } catch (Exception e) {
       LOG.warn("Generator: exception while partitioning segments, exiting 
+      LockUtil.removeLockFile(getConf(),lock);
       fs.delete(tempDir, true);
       return null;


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> nutch does not delete the .locked file, when the generator partition got an 
> exception
> -------------------------------------------------------------------------------------
>                 Key: NUTCH-2505
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2505
>             Project: Nutch
>          Issue Type: Bug
>          Components: generator
>    Affects Versions: 1.14
>            Reporter: Ajoy Lian
>            Assignee: Sebastian Nagel
>            Priority: Major
>             Fix For: 1.15
> nutch does not delete the .locked file when the generator partition got an 
> exception. 

This message was sent by Atlassian JIRA

Reply via email to