[jira] Updated: (DIRLDAP-71) CachingNormalizer exhibits concurrency flaw under load.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > [jira] Updated: (DIRLDAP-71) CachingNormalizer exhibits concurrency flaw under load.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Updated: (DIRLDAP-71) CachingNormalizer exhibits concurrency flaw under load.  
Jacob S. Barrett (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-11-05 10:45 PM

[ http://issues.apache.org/jira/brows...DAP-71?page=all ]

Jacob S. Barrett updated DIRLDAP-71:
------------------------------------

Attachment: CachingNormalizer-Concurrency.patch

> CachingNormalizer exhibits concurrency flaw under load.
> -------------------------------------------------------
>
>          Key: DIRLDAP-71
>          URL: http://issues.apache.org/jira/browse/DIRLDAP-71
>      Project: Directory LDAP
>         Type: Bug
>   Components: Common
>     Versions: 0.9.3
>     Reporter: Jacob S. Barrett
>  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 NullPointerExceptio
n.
This is really only reached when you have more than threads than the max cac
he size and therefore items in the cache are being purged.  The attached pat
h synchronizes the cache.  It would be better to use a R/W lock from JSR 166
 backport or something sim
ilar.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:49 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register