Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-1766

Generator to unlock crawldb and remove tempdir if generate job fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: generator
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              jnioche Julien Nioche
              Reporter:
              diaa_abdallah Diaa
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: