[ 
https://issues.apache.org/jira/browse/HDDS-2464?focusedWorklogId=342233&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-342233
 ]

ASF GitHub Bot logged work on HDDS-2464:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Nov/19 22:14
            Start Date: 12/Nov/19 22:14
    Worklog Time Spent: 10m 
      Work Description: adoroszlai commented on pull request #147: HDDS-2464. 
Avoid unnecessary allocations for FileChannel.open call
URL: https://github.com/apache/hadoop-ozone/pull/147
 
 
   ## What changes were proposed in this pull request?
   
   `ChunkUtils` calls `FileChannel#open(Path, OpenOption...)`.  Vararg array 
elements are then added to a new `HashSet` to be passed to 
`FileChannel#open(Path, Set<? extends OpenOption>, FileAttribute<?>...)`.  We 
can call the latter directly instead.
   
   https://issues.apache.org/jira/browse/HDDS-2464
   
   ## How was this patch tested?
   
   Ran `TestChunkUtils`.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 342233)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {{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-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to