[ http://jira.codehaus.org/browse/GEOT-698?page=all ]
     
Jesse Eichar reopened GEOT-698:
-------------------------------

     Assign To: Jesse Eichar  (was: Jody Garnett)

Still some bugs I am fixing them.  (I also had to modify transaction state diff)

> Deadlock during committing changes to shapefile
> -----------------------------------------------
>
>          Key: GEOT-698
>          URL: http://jira.codehaus.org/browse/GEOT-698
>      Project: GeoTools
>         Type: Bug
>   Components: shapefile
>     Versions: 2.2.M1, 2.1.1
>     Reporter: Vitali Diatchkov
>     Assignee: Jesse Eichar
>     Priority: Critical

>
>
> Committing changes to shapefile (features are added or modified) leads to 
> dead lock!
> The reason is  two synchronized methods in TransactionStateDiff class from 
> GeotTools API
> while one thread performs committing, another thread tries to render 
> shapefile datasource.
> The following chain of events happens:
> 1) rendering thread gets ShapefileReader and locks Lock object from shapefile 
> API in reading mode
> 2) committing thread tries to get lock for writing and waits in cycle in Lock 
> object infinitly
> 3) call stack of committing thread goes through TransactionStateDiff.commit() 
> method and locks that object for calling synchronized methods from other 
> threads
> 4) rendering thread tries to get into TransactionStateDiff.diff() method but 
> it is blocked until committing thread  gets write access from Lock object.
> We get infinite rendering progress indicator inside of UDIG and infinite 
> committing.
> Sometimes committing changes  doesn't lock, but 95 % it locks (tested on 
> different machines)

-- 
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:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to