HDFS-15494. TestReplicaCachingGetSpaceUsed#testReplicaCachingGetSpaceUsedByRBWReplica Fails on Windows. Contributed by Ravuri Sushma sree.

(cherry picked from commit 0665ce9930)
This commit is contained in:
Brahma Reddy Battula 2021-04-01 09:19:39 +05:30
parent c365149e16
commit 13878fc06b

View File

@ -43,6 +43,7 @@
import java.util.Set;
import static org.apache.hadoop.fs.CommonConfigurationKeysPublic.FS_DU_INTERVAL_KEY;
import static org.apache.hadoop.test.PlatformAssumptions.assumeNotWindows;
import static org.junit.Assert.assertEquals;
/**
@ -112,6 +113,8 @@ public void testReplicaCachingGetSpaceUsedByFINALIZEDReplica()
@Test
public void testReplicaCachingGetSpaceUsedByRBWReplica() throws Exception {
// This test cannot pass on Windows
assumeNotWindows();
FSDataOutputStream os =
fs.create(new Path("/testReplicaCachingGetSpaceUsedByRBWReplica"));
byte[] bytes = new byte[20480];