You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2019/11/12 22:10:00 UTC

[jira] [Created] (HDDS-2464) Avoid unnecessary allocations for FileChannel.open call

Attila Doroszlai created HDDS-2464:
--------------------------------------

             Summary: Avoid unnecessary allocations for FileChannel.open call
                 Key: HDDS-2464
                 URL: https://issues.apache.org/jira/browse/HDDS-2464
             Project: Hadoop Distributed Data Store
          Issue Type: Improvement
          Components: Ozone Datanode
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


{{ChunkUtils}} calls {{FileChannel#open(Path, OpenOption...)}}.  Vararg array elements are then added to a new {{HashSet}} to call {{FileChannel#open(Path, Set<? extends OpenOption>, FileAttribute<?>...)}}.  We can call the latter directly instead.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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