nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diaa Abdallah <diaa.abdelmon...@gmail.com>
Subject Re: [jira] [Commented] (NUTCH-1766) Generator to unlock crawldb and remove tempdir if generate job fails
Date Sun, 11 May 2014 15:31:54 GMT
Anyone wanna commit this?


On Mon, Apr 28, 2014 at 12:04 AM, Diaa (JIRA) <jira@apache.org> wrote:

>
>     [
> https://issues.apache.org/jira/browse/NUTCH-1766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13982485#comment-13982485]
>
> Diaa commented on NUTCH-1766:
> -----------------------------
>
> Attaching Generator patch to fix the issue
>
> > Generator to unlock crawldb and remove tempdir if generate job fails
> > --------------------------------------------------------------------
> >
> >                 Key: NUTCH-1766
> >                 URL: https://issues.apache.org/jira/browse/NUTCH-1766
> >             Project: Nutch
> >          Issue Type: Bug
> >          Components: generator
> >    Affects Versions: 1.9
> >            Reporter: Diaa
> >            Priority: Minor
> >             Fix For: 1.9
> >
> >         Attachments: GeneratorErrorHandling.patch
> >
> >
> > Currently if the generate job fails the following happens:
> > 1. generate temp directory remains
> > 2. crawldb remains in lock
> > The next time generate is called the following happens:
> > IO exception due to crawldb being in lock mode
> > Attached is a patch that cleans up after a job fails in generate by
> unlocking crawldb and removing the generate temp directory so that if a job
> fails the next time generate is called it wouldn't give an IO Exception.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.2#6252)
>

Mime
View raw message