[HDFS-10498] Intermittent test failure TestSnapshotFileLength.testSnapshotFileLength. Contributed by Jim Brennan.
(cherry picked from commit 6184ab07f6
)
This commit is contained in:
parent
ebdacedc83
commit
2c70705575
@ -128,6 +128,7 @@ public void testSnapshotfileLength() throws Exception {
|
|||||||
hdfs.getFileChecksum(file1snap1), is(snapChksum1));
|
hdfs.getFileChecksum(file1snap1), is(snapChksum1));
|
||||||
try {
|
try {
|
||||||
AppendTestUtil.write(out, 0, toAppend);
|
AppendTestUtil.write(out, 0, toAppend);
|
||||||
|
out.hflush();
|
||||||
// Test reading from snapshot of file that is open for append
|
// Test reading from snapshot of file that is open for append
|
||||||
byte[] dataFromSnapshot = DFSTestUtil.readFileBuffer(hdfs, file1snap1);
|
byte[] dataFromSnapshot = DFSTestUtil.readFileBuffer(hdfs, file1snap1);
|
||||||
assertThat("Wrong data size in snapshot.",
|
assertThat("Wrong data size in snapshot.",
|
||||||
|
Loading…
Reference in New Issue
Block a user