You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "BELUGA BEHR (JIRA)" <ji...@apache.org> on 2018/10/08 16:06:00 UTC

[jira] [Updated] (HDFS-13970) CacheManager Directives Map

     [ https://issues.apache.org/jira/browse/HDFS-13970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

BELUGA BEHR updated HDFS-13970:
-------------------------------
    Attachment: HDFS-13970.1.patch

> CacheManager Directives Map
> ---------------------------
>
>                 Key: HDFS-13970
>                 URL: https://issues.apache.org/jira/browse/HDFS-13970
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: caching, hdfs
>    Affects Versions: 3.2.0
>            Reporter: BELUGA BEHR
>            Assignee: BELUGA BEHR
>            Priority: Minor
>         Attachments: HDFS-13970.1.patch
>
>
> # Use Guava Multimap to simplify code
>  ## Currently, code uses a mix of LinkedList and ArrayList - just pick one
>  ## Currently, {{directivesByPath}} structure is sorted but never used in a sorted way, it only performs remove and add operations, no iteration - use a {{Set}} instead of a {{List}}
>  # The {{CacheDirective}} class needs a better hashcode implementation since it will be used in a Set.  Do not instantiate a {{HashBuilder}} object every time {{hashcode}} is called. Ouch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org