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

Akira AJISAKA commented on HDFS-8742:
-------------------------------------

Thanks [~surendrasingh] for creating the patch. Mostly looks good to me.
{code}
+      Assert.assertTrue(((Event.TruncateEvent) batch.getEvents()[0]).getPath()
+          .equals("/truncate_file"));
{code}
Would you add test cases to verify the file size and timestamp as well?

> Inotify: Support event for OP_TRUNCATE
> --------------------------------------
>
>                 Key: HDFS-8742
>                 URL: https://issues.apache.org/jira/browse/HDFS-8742
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode
>    Affects Versions: 2.7.0
>            Reporter: Surendra Singh Lilhore
>            Assignee: Surendra Singh Lilhore
>         Attachments: HDFS-8742.patch
>
>
> Currently inotify is not giving any event for Truncate operation. NN should 
> send event for "Truncate".



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

Reply via email to