accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubbsii <...@git.apache.org>
Subject [GitHub] accumulo issue #292: ACCUMULO-4681 Created Table & Namespace WeakReference m...
Date Mon, 14 Aug 2017 23:04:42 GMT
Github user ctubbsii commented on the issue:

    https://github.com/apache/accumulo/pull/292
  
    This whole thing might be easier to implement with [`CacheBuilder.weakValues()`][1] from
Guava. Eviction seems to occur if value disappears. I **think** this will do what we want,
and it should automatically hide the WeakReference stuff from us, auto-evicting stuff when
the value is gone so we never see it as present in the map. The key can be String, without
the need to do any crazy `new String` stuff, or early construction. It ensures a dependency
on Guava, though.
    
    [1]: https://google.github.io/guava/releases/16.0/api/docs/com/google/common/cache/CacheBuilder.html#weakValues()


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message