jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Moseley <...@osafoundation.org>
Subject LocalFileSystem.createFolder failure
Date Fri, 04 Nov 2005 20:21:02 GMT

i'm running into failures creating directories on the filesystem:

2005-11-04 11:38:44,479 ERROR [DavResourceImpl] Error while executing 
import chain: javax.jcr.RepositoryException: /smooney/Work: unable to 
update item.: failed to store property state: 
failed to create folder 
failed to store property state: 
mixinTypes: failed to create folder 

the failing method is LocalFileSystem.createFolder, specifically the 
f.mkdirs() call on line 205.

when i try to mkdir data/repository/workspaces/homedir/data/85a2 by 
hand, i get 'mkdir: cannot create directory `85a2': Too many links'.

the system is Linux halua 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 
i686 GNU/Linux. i am informed that it has a limit of 32k files and 
directories within a directory. it turns out that there are 31998 dirs 
in data/repository/workspaces/homedir/data, so that explains the error.

what's the right solution to the problem? one suggestion has been to 
move to a 2-character hashing scheme, which would guarantee fewer than 
32k directories at each level. is this workable? is there a better solution?

View raw message