[
https://issues.apache.org/jira/browse/HDFS-2505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ravi Prakash updated HDFS-2505:
-------------------------------
Attachment: HDFS-2505.patch
bq. Hey Ravi, I actually don't understand why the test in the new patch works
since it create a file in /tmp but the link target is /hdfstmp. Is it still
using some side-effect from testFileStatusSerialziation? If you want to have
two test, please make sure the new test can run without the existing test.
Thanks a lot Nicholas! That was a great catch. ViewFS is still confusing to me.
I've added another test to check that checksums of different files are
different. The earlier patch was working because /tmp had been setup in the
ViewFS mount tables in the first test, and this was being resolved as /tmp in
HDFS in the second test.
Apparently FileSystem.get caches the conf and so setting it a second time is
useless. By that time viewfs:// has already been configured and can not be
changed (from what I can tell).
This new patch sets up ViewFS in the @BeforeTest method. Now the tests work
independently as well as together
> Add a test to verify getFileChecksum works with ViewFS
> ------------------------------------------------------
>
> Key: HDFS-2505
> URL: https://issues.apache.org/jira/browse/HDFS-2505
> Project: Hadoop HDFS
> Issue Type: Test
> Components: test
> Affects Versions: 0.23.0
> Reporter: Ravi Prakash
> Assignee: Ravi Prakash
> Priority: Minor
> Labels: test
> Fix For: 0.24.0
>
> Attachments: HDFS-2505.patch, HDFS-2505.patch, HDFS-2505.patch,
> HDFS-2505.patch
>
>
> Please refer to HADOOP-7770. getFileChecksum was failing on files such as
> /tmp/someFile, but working fine for /someDir/someFile.
> The fix is in HADOOP-7770 but we should have a test in HDFS which checks this
> functionality (this test will fail until HADOOP-7770 is checked in)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira