HDFS-7954. TestBalancer#testBalancerWithPinnedBlocks should not be executed on Windows. Contributed by Xiaoyu Yao
This commit is contained in:
parent
9ed43f2189
commit
4f412f487c
@ -1360,6 +1360,9 @@ Release 2.7.0 - UNRELEASED
|
|||||||
HDFS-8001 RpcProgramNfs3 : wrong parsing of dfs.blocksize
|
HDFS-8001 RpcProgramNfs3 : wrong parsing of dfs.blocksize
|
||||||
(Remi Catherinot via brandonli)
|
(Remi Catherinot via brandonli)
|
||||||
|
|
||||||
|
HDFS-7954. TestBalancer#testBalancerWithPinnedBlocks should not be executed
|
||||||
|
on Windows. (Xiaoyu Yao via szetszwo)
|
||||||
|
|
||||||
BREAKDOWN OF HDFS-7584 SUBTASKS AND RELATED JIRAS
|
BREAKDOWN OF HDFS-7584 SUBTASKS AND RELATED JIRAS
|
||||||
|
|
||||||
HDFS-7720. Quota by Storage Type API, tools and ClientNameNode
|
HDFS-7720. Quota by Storage Type API, tools and ClientNameNode
|
||||||
|
@ -23,6 +23,7 @@ import static org.apache.hadoop.hdfs.DFSConfigKeys.*;
|
|||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
import static org.junit.Assert.fail;
|
import static org.junit.Assert.fail;
|
||||||
|
import static org.junit.Assume.assumeTrue;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -309,6 +310,11 @@ public class TestBalancer {
|
|||||||
*/
|
*/
|
||||||
@Test(timeout=100000)
|
@Test(timeout=100000)
|
||||||
public void testBalancerWithPinnedBlocks() throws Exception {
|
public void testBalancerWithPinnedBlocks() throws Exception {
|
||||||
|
// This test assumes stick-bit based block pin mechanism available only
|
||||||
|
// in Linux/Unix. It can be unblocked on Windows when HDFS-7759 is ready to
|
||||||
|
// provide a different mechanism for Windows.
|
||||||
|
assumeTrue(!Path.WINDOWS);
|
||||||
|
|
||||||
final Configuration conf = new HdfsConfiguration();
|
final Configuration conf = new HdfsConfiguration();
|
||||||
initConf(conf);
|
initConf(conf);
|
||||||
conf.setBoolean(DFS_DATANODE_BLOCK_PINNING_ENABLED, true);
|
conf.setBoolean(DFS_DATANODE_BLOCK_PINNING_ENABLED, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user