SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-749
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Shay Banon
Reporter: Uwe Jäger
Votes: 0
Watchers: 0
Operations

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

Synchronisation on TerracottaFile.setLastModified

Created: 21/Oct/08 10:06 AM   Updated: 21/Oct/08 12:22 PM
Component/s: Compass::Needle
Affects Version/s: 2.0.2
Fix Version/s: 2.1.0 GA


 Description  « Hide
We use a clustered TerracottaDirectory. The replaceIndex-Operation fails with an "Attempt to access a shared object outside the scope of a shared lock" since the setLastModified method is not synchronized. Refering to the comment in the source code " // Not syncronize on get/set lastModified, should be ok, but needs to be verified" this is the required verification . Adding a "synchronized" to the method works.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 21/Oct/08 12:22 PM
Yea, it should be synchronized, thanks!.