Skip to content

Commit 54b4ff8

Browse files
author
xiezhineng
committed
fix unit test 2
1 parent 92b0436 commit 54b4ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancerWithHANameNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ void doTest(Configuration conf, boolean withHA) throws Exception {
144144
TestBalancer.createFile(cluster, TestBalancer.filePath, totalUsedSpace
145145
/ numOfDatanodes, (short) numOfDatanodes, 0);
146146

147-
boolean isRequestStandby = conf.getBoolean(
147+
boolean isRequestStandby = !conf.getBoolean(
148148
DFS_NAMENODE_GETBLOCKS_CHECK_OPERATION_KEY,
149149
DFS_NAMENODE_GETBLOCKS_CHECK_OPERATION_DEFAULT);
150150
if (isRequestStandby) {

0 commit comments

Comments
 (0)