[
https://issues.apache.org/jira/browse/HADOOP-7473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067318#comment-13067318
]
Owen O'Malley commented on HADOOP-7473:
---------------------------------------
We could fix this by changing the command to use: "du -ks --apparent-size
<file>", which causes it to return the part of the allocation that is actually
used. That however, isn't available on non-gnu systems.
I'd propose instead that we just loosen the TestDU test to require that the
size be between:
size <= returned size < size + 10%
> TestDU is too sensitive to underlying filesystem
> ------------------------------------------------
>
> Key: HADOOP-7473
> URL: https://issues.apache.org/jira/browse/HADOOP-7473
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Owen O'Malley
>
> DU currently uses "du -ks <path>" to determine the size. The returned number
> can be substantially more than the apparent size of the file, which causes
> the TestDU to fail.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira