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