You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Wiktor Niesiobedzki <os...@vink.pl> on 2015/03/28 19:40:33 UTC

Fwd: Commons JCS - disk cache bugs

Hi,

I'm trying to integrate Commons JCS into Java OpenStreetMap editor
(http://josm.openstreetmap.de). During tests I see, that from time to
time IndexedDiskCache is thrown away. I've made a simple unit test
that detects this situation:
https://issues.apache.org/jira/browse/JCS-146

Also, I took some time to find the bug, and I attached small patch
that fixes this issue.

I tried also to use BlockDiskCache, that doesn't need optimization at
all, but there is some locking problem:
https://issues.apache.org/jira/browse/JCS-144

For which I've also attached the patch.

I see that JCS project doesn't enjoy much activity, but is there any
chance, that someone could review and commit JCS-144 and JCS-146?

I'd really enjoy, if I could have a fix in mainstream repository
instead of keeping local patches within JOSM tree.

Cheers,

Wiktor

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: Fwd: Commons JCS - disk cache bugs

Posted by Thomas Vandahl <tv...@apache.org>.
On 28.03.15 19:40, Wiktor Niesiobedzki wrote:
> Hi,
> 
> I'm trying to integrate Commons JCS into Java OpenStreetMap editor
> (http://josm.openstreetmap.de). During tests I see, that from time to
> time IndexedDiskCache is thrown away. I've made a simple unit test
> that detects this situation:
> https://issues.apache.org/jira/browse/JCS-146
> 
> Also, I took some time to find the bug, and I attached small patch
> that fixes this issue.
> 
> I tried also to use BlockDiskCache, that doesn't need optimization at
> all, but there is some locking problem:
> https://issues.apache.org/jira/browse/JCS-144
> 
> For which I've also attached the patch.
> 
> I see that JCS project doesn't enjoy much activity, but is there any
> chance, that someone could review and commit JCS-144 and JCS-146?
> 
> I'd really enjoy, if I could have a fix in mainstream repository
> instead of keeping local patches within JOSM tree.

I already had a look at the patches. I'll try to include them soon.

Bye, Thomas.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org