Issue Details (XML | Word | Printable)

Key: NUTCH-285
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Dennis Kubes
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Nutch

LinkDb Fails rename doesn't create parent directories

Created: 25/May/06 04:38 AM   Updated: 25/May/06 07:43 AM
Return to search
Component/s: None
Affects Version/s: 0.8
Fix Version/s: 0.8

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works create_linkdb_dirs.patch 2006-05-25 04:39 AM Dennis Kubes 0.7 kB
Environment: Windows XP Media Center 2005, Fedora Core 5, Java 5, DFS

Resolution Date: 25/May/06 07:43 AM


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Dennis Kubes added a comment - 25/May/06 04:39 AM
Patch to add mkdirs call to install method of LinkDb to ensure parent directories exist before attempting rename.

Andrzej Bialecki added a comment - 25/May/06 07:43 AM
Fixed, I also applied the same fix in CrawlDb, which suffered from the same problem.