History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CACHE-261
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Lars Torunski
Reporter: Lars Torunski
Votes: 0
Watchers: 0
Operations

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

Check javadoc of Cache.cancelUpdate on key not being updated

Created: 03/Oct/06 10:44 AM   Updated: 08/Oct/06 04:30 AM
Component/s: Base Classes
Affects Version/s: 2.3.2
Fix Version/s: 2.4


 Description  « Hide
The Java doc for Cache#cancelUpdate says:

Note however that there is no harm in cancelling an update on a key that either does not exist or is not currently being updated.

Yet, the called EntryUpdateState#cancelUpdate throws an Exception if the key is not currently being updated:

if (state != UPDATE_IN_PROGRESS) {
            throw new IllegalStateException("Cannot cancel cache update - current state (" + state + ") is not UPDATE_IN_PROGRESS");
}

http://forums.opensymphony.com/thread.jspa?threadID=45046&messageID=91016#91016

 All   Comments   Change History      Sort Order:
Lars Torunski - [08/Oct/06 04:30 AM ]
javadoc corrected in Cache#cancelUpdate