[
https://issues.apache.org/jira/browse/HDFS-4642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13615837#comment-13615837
]
Ted Yu commented on HDFS-4642:
------------------------------
The list of files is obtained through the following API:
{code}
public FileStatus[] listStatus(Path f, PathFilter filter)
{code}
Then SplitLogManager puts each path in a znode:
{code}
for (FileStatus lf : logfiles) {
...
totalSize += lf.getLen();
String pathToLog = FSUtils.removeRootPath(lf.getPath(), conf);
if (!enqueueSplitTask(pathToLog, batch)) {
{code}
It would be ideal if we can request lease recovery for the files to be returned
by listStatus(). Meaning introduce new API:
{code}
public FileStatus[] listStatus(Path f, PathFilter filter, Op op)
{code}
where Op is an enum that can specify RECOVER_LEASE
> Allow lease recovery for multiple paths to be issued in one request
> -------------------------------------------------------------------
>
> Key: HDFS-4642
> URL: https://issues.apache.org/jira/browse/HDFS-4642
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Ted Yu
>
> Currently client can only request lease recovery for one Path:
> {code}
> public boolean recoverLease(Path f) throws IOException {
> {code}
> For HBase distributed log splitting, Nicolas made a suggestion here:
> https://issues.apache.org/jira/browse/HBASE-7878?focusedCommentId=13615364&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13615364
> HBase master collects the files that should be split, it issues lease
> recovery for the files (in one request), then distribute log splitting.
> This would help shorten MTTR.
--
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