directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <>
Subject [jira] Closed: (DIRSERVER-210) CachingNormalizer exhibits concurrency flaw under load.
Date Sat, 21 Apr 2007 11:20:16 GMT


Emmanuel Lecharny closed DIRSERVER-210.

Closing all issues created in 2005 and before which are marked resolved

> CachingNormalizer exhibits concurrency flaw under load.
> -------------------------------------------------------
>                 Key: DIRSERVER-210
>                 URL:
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: pre-1.0
>            Reporter: Jacob S. Barrett
>         Assigned To: Emmanuel Lecharny
>             Fix For: pre-1.0
>         Attachments: CachingNormalizer-Concurrency.patch
> CachingNormalizer doesn't have it's cache protected from concurrent modifications.  Under
load a state is reached where cache.containsKey(key) is true but the result of cache.get(key)
results in an unexpected null value and thus a NullPointerException.  This is really only
reached when you have more than threads than the max cache size and therefore items in the
cache are being purged.  The attached path synchronizes the cache.  It would be better to
use a R/W lock from JSR 166 backport or something similar.

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

View raw message