[jboss-jira] [JBoss JIRA] Commented: (JGRP-919) UUID.cache: timed purging of old mappings

Bela Ban (JIRA) jira-events at lists.jboss.org
Wed Mar 4 05:43:45 EST 2009


    [ https://jira.jboss.org/jira/browse/JGRP-919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12455363#action_12455363 ] 

Bela Ban commented on JGRP-919:
-------------------------------

The new class for doing this is LazyRemovalCache

> UUID.cache: timed purging of old mappings
> -----------------------------------------
>
>                 Key: JGRP-919
>                 URL: https://jira.jboss.org/jira/browse/JGRP-919
>             Project: JGroups
>          Issue Type: Feature Request
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>            Priority: Minor
>             Fix For: 2.8
>
>
> When a channel is closed, the logical name / UUID mapping is removed by calling UUID.remove(). However, if we have a View V which contains A and B, but B was closed, then V will get printed with A's logical name but B's UUID !
> This is not incorrect, but doesn't look nice.
> A delayed purging of B's logical name/UUID mapping would allows us to still print the logical name of B instead of its UUID, even though B was closed.
> SOLUTION(S):
> - Delay every remove(): place the to be removed element into a queue, from which we purge an element E only if E is older than X milliseconds.
> - Alternative: remove only at JVM termination, or when cache is more than X elements big

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

        



More information about the jboss-jira mailing list