[
https://issues.apache.org/jira/browse/HDFS-10480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Manoj Govindassamy updated HDFS-10480:
--------------------------------------
Attachment: HDFS-10480.06.patch
[~andrew.wang], Attached v06 patch to address the following
bq. testListOpenFilesInHA, it'd be nice to see what happens when there's a
failover between batches while iterating.
Done. Updated testListOpenFilesInHA to perform NN failover in parallel with a
client thread listing open files in a loop.
Also, fixed check style issues.
[~shahrs87],
Thanks for the review comments.
bq. Instead of creating SortedMap<Long, Lease> we can just create
SortedSet<Long> and call getINodeIdWithLeases to populate it.
We actually need a small batch of Inodes, starting from cursor point/inode that
was already returned to client. So, making use of the tailmap functionality
from TreeMap to get this remote iterator behavior.
> Add an admin command to list currently open files
> -------------------------------------------------
>
> Key: HDFS-10480
> URL: https://issues.apache.org/jira/browse/HDFS-10480
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Kihwal Lee
> Assignee: Manoj Govindassamy
> Attachments: HDFS-10480.02.patch, HDFS-10480.03.patch,
> HDFS-10480.04.patch, HDFS-10480.05.patch, HDFS-10480.06.patch,
> HDFS-10480-trunk-1.patch, HDFS-10480-trunk.patch
>
>
> Currently there is no easy way to obtain the list of active leases or files
> being written. It will be nice if we have an admin command to list open files
> and their lease holders.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]