[logback-dev] [JIRA] Resolved: (LBCLASSIC-255) LRUMessageCache is not multithread-safe.

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Fri Mar 18 14:48:51 CET 2011


     [ http://jira.qos.ch/browse/LBCLASSIC-255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gulcu resolved LBCLASSIC-255.
----------------------------------

    Fix Version/s: 0.9.29
       Resolution: Fixed

In any case, heeding your observation about the vulnerability of LinkedHashMap in multi-threaded environment, I have synchronized parts of the  getMessageCountAndThenIncrement method in LRUMessageCache. 

> LRUMessageCache is not multithread-safe.
> ----------------------------------------
>
>                 Key: LBCLASSIC-255
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-255
>             Project: logback-classic
>          Issue Type: Bug
>    Affects Versions: unspecified
>            Reporter: César Álvarez Núñez
>            Assignee: Ceki Gulcu
>             Fix For: 0.9.29
>
>         Attachments: Added+synchronization+to+LRUMessageCache.+Now+it+is+multithread-safe.patch
>
>
> The LRUMessageCache used on DuplicateMessageFilter is not properly synchronized.

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

       


More information about the logback-dev mailing list