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

Key: CACHE-279
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Lars Torunski
Reporter: Peter Lawrey
Votes: 0
Watchers: 1
Operations

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

LRUCache loses entries when updated by mutliple threads.

Created: 14/Feb/07 08:08 AM   Updated: 01/Jul/07 01:41 AM
Component/s: Base Classes
Affects Version/s: 2.3.2
Fix Version/s: 2.4.1

File Attachments: 1. Java Source File TestConcurrent.java (4 kb)

Environment: Windows


 Description  « Hide
When I add 10,000 entries using 5 threads (2,000 each) and then check the entries are still there, some are not.
Which entries are missing is random from one run to the next. About 13-17/10,000 are missing.

Oscache-2.3.2
Dual Xeon with hyper threading enabled.

Properties
# CACHE IN MEMORY
cache.memory=true
# CACHE SIZE
cache.capacity=10000
cache.algorithm=com.opensymphony.oscache.base.algorithm.LRUCache


 All   Comments   Change History      Sort Order:
Lars Torunski - [17/Feb/07 04:50 AM ]
Peter, can you support us by providing a unit test?

Peter Lawrey - [19/Feb/07 01:52 PM ]
I will rework my test so it is simple to run and attach it.

Lars Torunski - [19/May/07 10:32 AM ]
I can't reproduce the problem with the attached test case.