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

LinkDb Fails rename doesn't create parent directories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8
    • 0.8
    • None
    • None
    • 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.

      Attachments

        1. create_linkdb_dirs.patch
          0.7 kB
          Dennis Kubes

        Activity

          People

            Unassigned Unassigned
            musepwizard Dennis Kubes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: