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

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Thu Mar 17 10:49:51 CET 2011


    [ http://jira.qos.ch/browse/LBCLASSIC-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11983#action_11983 ] 

Ceki Gulcu commented on LBCLASSIC-255:
--------------------------------------

Hello César,

On my machine, all tests in LRUMessageCacheTest pass without making any modifications to LRUMessageCache. This may be explained by the fact that the TestTask acts on amessage obtained from the current thread name. Thus, each task will work with a different message avoiding collisions between the various tasks. However, for testing purposes we would like to encourage collisions.

> 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
>         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