[
https://issues.apache.org/jira/browse/HDFS-9262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15041927#comment-15041927
]
Xiaobing Zhou commented on HDFS-9262:
-------------------------------------
I tried that but DataNode#data that is typeof interface FsDatasetSpi, which is
agnostic of any concrete type where I can put updateLazyWriterInterval.
In details, DataNode#data is initialized within DataNode#initStorage by
calling FsDatasetFactory#newInstance
DataNode#initStorage
{code}
synchronized(this) {
if (data == null) {
data = factory.newInstance(this, storage, conf);
}
}
{code}
{code}
public FsDatasetImpl newInstance(DataNode datanode,
DataStorage storage, Configuration conf) throws IOException {
return new FsDatasetImpl(datanode, storage, conf);
}
{code}
Do you think it's good to keep current implementation or change FsDatasetSpi or
write a new interface to accommodate updateLazyWriterInterval? Thanks
[~arpitagarwal]
> Reconfigure DN lazy writer interval on the fly
> ----------------------------------------------
>
> Key: HDFS-9262
> URL: https://issues.apache.org/jira/browse/HDFS-9262
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: datanode
> Affects Versions: 2.7.0
> Reporter: Xiaobing Zhou
> Assignee: Xiaobing Zhou
> Attachments: HDFS-9262.001.patch
>
>
> This is to reconfigure
> {code}
> dfs.datanode.lazywriter.interval.sec
> {code}
> without restarting DN.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)