[ 
https://issues.apache.org/jira/browse/HDFS-7655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14294807#comment-14294807
 ] 

Konstantin Shvachko commented on HDFS-7655:
-------------------------------------------

Hey Yi. I think the test for WebHDFS should be in o.a.h.hdfs.web package rahter 
than in TestFileTruncate. May be in TestWebHDFS or TestFSMainOperationsWebHdfs.
You can try to reuse one of the methods from TestFileTruncate such as your own 
{{testTruncate4Symlink}} by adding {{FileSystem fs}} as a parameter to it. You 
may need to factor out a static method out of it.

> Expose truncate API for Web HDFS
> --------------------------------
>
>                 Key: HDFS-7655
>                 URL: https://issues.apache.org/jira/browse/HDFS-7655
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode, namenode
>            Reporter: Yi Liu
>            Assignee: Yi Liu
>         Attachments: HDFS-7655.001.patch, HDFS-7655.002.patch
>
>
> This JIRA is to expose truncate API for Web HDFS.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to