[ https://issues.apache.org/jira/browse/HADOOP-6177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hong Tang updated HADOOP-6177: ------------------------------ Attachment: hadoop-6177-testcase.patch The patch file modifies existing test cases to check that after reading through the file, the final offset would be the same as the file offset. On my local machine, it yields: {noformat} % ant test-core -Dtestcase=TestChecksumFileSystem run-test-core: [delete] Deleting directory /Users/htang/Documents/Work/workspace/hadoop-common/build/test/data [mkdir] Created dir: /Users/htang/Documents/Work/workspace/hadoop-common/build/test/data [delete] Deleting directory /Users/htang/Documents/Work/workspace/hadoop-common/build/test/logs [mkdir] Created dir: /Users/htang/Documents/Work/workspace/hadoop-common/build/test/logs [junit] Running org.apache.hadoop.fs.TestChecksumFileSystem [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0.59 sec [junit] Test org.apache.hadoop.fs.TestChecksumFileSystem FAILED % tail build/test/TEST-org.apache.hadoop.fs.TestChecksumFileSystem.txt ------------- ---------------- --------------- Testcase: testgetChecksumLength took 0.196 sec Testcase: testVerifyChecksum took 0.373 sec FAILED expected:<7> but was:<8> junit.framework.AssertionFailedError: expected:<7> but was:<8> at org.apache.hadoop.fs.TestLocalFileSystem.readFile(TestLocalFileSystem.java:45) at org.apache.hadoop.fs.TestChecksumFileSystem.testVerifyChecksum(TestChecksumFileSystem.java:57) {noformat} > FSInputChecker.getPos() would return position greater than the file size > ------------------------------------------------------------------------ > > Key: HADOOP-6177 > URL: https://issues.apache.org/jira/browse/HADOOP-6177 > Project: Hadoop Common > Issue Type: Bug > Reporter: Hong Tang > Attachments: hadoop-6177-testcase.patch > > > When using a small buffer (< 512 bytes) to read through the whole file, the > final file position is 1+ the file size. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.