[HDFS-10498] Intermittent test failure TestSnapshotFileLength.testSnapshotFileLength. Contributed by Jim Brennan.

This commit is contained in:
Jim Brennan 2021-01-28 16:47:52 +00:00
parent f8769e0f4b
commit 6184ab07f6
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ public class TestSnapshotFileLength {
hdfs.getFileChecksum(file1snap1), is(snapChksum1));
try {
AppendTestUtil.write(out, 0, toAppend);
out.hflush();
// Test reading from snapshot of file that is open for append
byte[] dataFromSnapshot = DFSTestUtil.readFileBuffer(hdfs, file1snap1);
assertThat("Wrong data size in snapshot.",