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

Bela Ban (JIRA) jira-events at lists.jboss.org
Tue Mar 3 09:43:22 EST 2009


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