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

Andrew Wang updated HDFS-5050:
------------------------------

    Attachment: hdfs-5050-3.patch

Thanks Colin, new patch addresses your comments. Only deviation is that we 
can't close the fd backing the mmap until we finish checksum verification, so I 
close it in {{#verifyChecksum}} rather than {{#map}}.

I also went ahead and tried a few more of your offline improvement suggestions:

- Renamed MmapBlock to MappableBlock
- Got rid of the Drainer thread, it wasn't useful
- Moved the per-volume cache workers into each individual FsVolumeImpl, so we 
instead get the executor from the volume instead of the map in FsDatasetCache. 
Eventually, we should also refactor away FsDatasetAsyncDiskService to use this 
new executor.
                
> Add DataNode support for mlock and munlock
> ------------------------------------------
>
>                 Key: HDFS-5050
>                 URL: https://issues.apache.org/jira/browse/HDFS-5050
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode, namenode
>            Reporter: Colin Patrick McCabe
>            Assignee: Andrew Wang
>         Attachments: hdfs-5050-1.patch, hdfs-5050-2.patch, hdfs-5050-3.patch
>
>
> Add DataNode support for mlock and munlock.  The DataNodes should respond to 
> RPCs telling them to mlock and munlock blocks.  Blocks should be uncached 
> when the NameNode asks for them to be moved or deleted.  For now, we should 
> cache only completed blocks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to