[ 
https://issues.apache.org/jira/browse/JCS-67?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aaron Smuts closed JCS-67.
--------------------------

    Resolution: Fixed

During partial key removeall the Disk Element Descriptor, which identifies the 
slot on disk, was being added to the recylebin.  Then the removeSingleItem was 
called for each match.  The remove single item method also adds the item to the 
recylebin.  The recyclebin is not a set.  The spot would get entered twice.  
This is very bad.  Here's why:

The spot gets used.  Another put uses the same spot.  Both keys in the key map 
point to the same spot.  A get for the first key will pull the data for the 
second.  Not so good.  

I altered a unit test to reveal the problem.  I made the simple fix.

It will be in the 1.3.3.5-RC temp build.

> Indexed Disk Cache Returns Wrong Data
> -------------------------------------
>
>                 Key: JCS-67
>                 URL: https://issues.apache.org/jira/browse/JCS-67
>             Project: JCS
>          Issue Type: Bug
>          Components: Indexed Disk Cache
>    Affects Versions: jcs-1.3
>         Environment: Any
>            Reporter: Aaron Smuts
>            Assignee: Aaron Smuts
>             Fix For: jcs-1.4-dev
>
>
> The indexed disk cache was reported to return the incorrect value at times.
> This was happening under high load when the partial key removal mechanism was 
> invoked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jcs-dev-h...@jakarta.apache.org

Reply via email to