Nutch
  1. Nutch
  2. NUTCH-285

LinkDb Fails rename doesn't create parent directories

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.8
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows XP Media Center 2005, Fedora Core 5, Java 5, DFS

      Description

      The LinkDb install method fails to correctly rename (move) the LinkDb working directory to the final directory if the parent directories do not exist.

      For example if I am creating a linkdb by the name of crawl/linkdb the install method trys to rename the working linkdb directory (something like linkdb-20060523 in root of DFS) to crawl/linkdb/current. But if the crawl/linkdb directory does not already exist then the rename fails and the linkdb-20060523 working directory stays in the root directory of the DFS for the user.

      The attached patch adds a mkdirs command to the install method to ensure that the parent directories exist before trying to rename.

        Activity

        Hide
        Dennis Kubes added a comment -

        Patch to add mkdirs call to install method of LinkDb to ensure parent directories exist before attempting rename.

        Show
        Dennis Kubes added a comment - Patch to add mkdirs call to install method of LinkDb to ensure parent directories exist before attempting rename.
        Hide
        Andrzej Bialecki added a comment -

        Fixed, I also applied the same fix in CrawlDb, which suffered from the same problem.

        Show
        Andrzej Bialecki added a comment - Fixed, I also applied the same fix in CrawlDb, which suffered from the same problem.

          People

          • Assignee:
            Unassigned
            Reporter:
            Dennis Kubes
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development