[
https://issues.apache.org/jira/browse/HDFS-17632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18037325#comment-18037325
]
ASF GitHub Bot commented on HDFS-17632:
---------------------------------------
kokonguyen191 opened a new pull request, #8072:
URL: https://github.com/apache/hadoop/pull/8072
### Description of PR
(reopened due to ticket being auto closed)
Routers don't have support for listOpenFiles yet. Single destination paths
are straightforward. Multi destination paths are joined; entries with inodeId >
min(max(entry inodeIds)) are ignored to get a consistent prevId for the
iterator.
The implementation is the same as the logic used for aligning results from
multiple destinations in router getListing.
### How was this patch tested?
UTs
> RBF: Support listOpenFiles for routers
> --------------------------------------
>
> Key: HDFS-17632
> URL: https://issues.apache.org/jira/browse/HDFS-17632
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: hdfs, rbf
> Reporter: Felix N
> Assignee: Felix N
> Priority: Major
> Labels: pull-request-available
>
> {code:java}
> @Override
> public BatchedEntries<OpenFileEntry> listOpenFiles(long prevId,
> EnumSet<OpenFilesIterator.OpenFilesType> openFilesTypes, String path)
> throws IOException {
> rpcServer.checkOperation(NameNode.OperationCategory.READ, false);
> return null;
> } {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]