You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by "Aaron Smuts (JIRA)" <ji...@apache.org> on 2009/08/12 16:24:14 UTC

[jira] Created: (JCS-67) Indexed Disk Cache Returns Wrong Data

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-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org


[jira] Closed: (JCS-67) Indexed Disk Cache Returns Wrong Data

Posted by "Aaron Smuts (JIRA)" <ji...@apache.org>.
     [ 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-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org