[
https://issues.apache.org/jira/browse/HDFS-7159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arpit Agarwal updated HDFS-7159:
--------------------------------
Attachment: HDFS-7159.01.patch
Preliminary patch.
Patch adds a new LAZY_PERSIST policy to the default
{{BlockStoragePolicySuite}}. The policy targets RAM_DISK with DISK as default
storage.
A new property has been added to {{BlockStoragePolicy}} called
{{copyOnCreateFile}}. If set, then the policy is inherited by the file on
creation and cannot be reset later.
Layout and INodeFileHeader changes made in the branch earlier have been
reverted, significantly simplifying the branch payload.
> Use block storage policy to set lazy persist preference
> -------------------------------------------------------
>
> Key: HDFS-7159
> URL: https://issues.apache.org/jira/browse/HDFS-7159
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Reporter: Arpit Agarwal
> Assignee: Arpit Agarwal
> Attachments: HDFS-7159.01.patch
>
>
> Now that HDFS-6584 feature is ready and supports block storage policies on
> both files and directories, we can make use of Storage Policies to store the
> LAZY_PERSIST preference.
> This only affects how the preference is persisted in the FsImage/Edit logs.
> There is no change to the client API or to NN-DN interaction.
> An additional advantage is that can support setting the lazy persist
> preference on a directory and it will take effect for all new files.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)