Dibyendu Karmakar commented on HDFS-13386:

Thanks [~elgoiri] for your review comments. I have handled the style related 
{quote}I'm not sure is needed to do a listStatus and a getPartialListing, 
shouldn't we be able to check the dates directly?
Here listStatus is done to get the list from the NN and then we are doing

DirectoryListing listing =
    routerProtocol.getListing("/", HdfsFileStatus.EMPTY_NAME, false);
to get the listing from router. After that we are verifying the time returned 
by NN and router.

{quote}We could also check that the number of entries is the expected.



> RBF: Wrong date information in list file(-ls) result
> ----------------------------------------------------
>                 Key: HDFS-13386
>                 URL: https://issues.apache.org/jira/browse/HDFS-13386
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Dibyendu Karmakar
>            Assignee: Dibyendu Karmakar
>            Priority: Minor
>         Attachments: HDFS-13386-002.patch, HDFS-13386-003.patch, 
> HDFS-13386-004.patch, HDFS-13386.000.patch, HDFS-13386.001.patch, 
> image-2018-04-03-11-59-51-623.png
> # hdfs dfs -ls 
> !image-2018-04-03-11-59-51-623.png!
> this is happening because getMountPointDates is not implemented 
> {code:java}
> private Map<String, Long> getMountPointDates(String path) {
> Map<String, Long> ret = new TreeMap<>();
> // TODO add when we have a Mount Table
> return ret;
> }
> {code}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to