File access log covers only .shp and .dbf files
-----------------------------------------------
Key: GEOT-1574
URL: http://jira.codehaus.org/browse/GEOT-1574
Project: GeoTools
Issue Type: Bug
Components: data shapefile
Affects Versions: 2.4-RC0
Reporter: Andrea Aime
Assignee: Jesse Eichar
Priority: Critical
Fix For: 2.4-RC1
Code throught the shapefile datastore takes care or acquiring a read or a write
log only before accessing the .shp and .dbf files, but not when trying to read
or create the .shx, .fix and .qix files. Read code using indexes for example
first access the indexes and only after that a read lock is got. If in the
meantime someone tries to update the file this will break, becaue the .shx file
is being read while the shapefile datastore tries to delete and replace it with
a new one (this happens specifically on windows).
A better synch scheme should be looked upon so that read locks are not gathered
in the shapefile reader but in the shapefile datastore before accessing the
index files, or alternatively the index file access should be moved inside the
shapefile reader and triggered only after the read lock is acquired.
While I'm not sure this is necessary, I'd say the same goes for getting file
channels, first the code should try to get the locks before trying to actually
access the files (otherwise OS level locks may break other concurrent users).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel