Skip to content

Commit 2079744

Browse files
author
Danny Becker
committed
Fix checkstyle
1 parent bf017bf commit 2079744

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestBootstrapStandby.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import java.util.function.Supplier;
3737
import org.apache.hadoop.hdfs.DistributedFileSystem;
3838
import org.apache.hadoop.hdfs.protocol.HdfsConstants.RollingUpgradeAction;
39-
import org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo;
4039
import org.apache.hadoop.hdfs.server.common.HttpGetFailedException;
4140
import org.apache.hadoop.hdfs.server.namenode.FSImage;
4241
import org.apache.hadoop.hdfs.server.namenode.NameNodeLayoutVersion;
@@ -218,7 +217,7 @@ public void testRollingUpgradeBootstrapStandby() throws Exception {
218217
// Start rolling upgrade
219218
fs.rollingUpgrade(RollingUpgradeAction.PREPARE);
220219
LambdaTestUtils.await(60000, 1000, () ->
221-
fs.rollingUpgrade(RollingUpgradeAction.QUERY).createdRollbackImages());
220+
fs.rollingUpgrade(RollingUpgradeAction.QUERY).createdRollbackImages());
222221
// After the rollback image is created the standby is not needed
223222
cluster.shutdownNameNode(1);
224223
removeStandbyNameDirs();
@@ -247,8 +246,8 @@ public void testRollingUpgradeBootstrapStandby() throws Exception {
247246
long expectedCheckpointTxId = NameNodeAdapter.getNamesystem(nn0)
248247
.getFSImage().getMostRecentCheckpointTxId();
249248
long expectedRollbackTxId = NameNodeAdapter.getNamesystem(nn0)
250-
.getFSImage().getMostRecentNameNodeFileTxId(
251-
NNStorage.NameNodeFile.IMAGE_ROLLBACK);
249+
.getFSImage().getMostRecentNameNodeFileTxId(
250+
NNStorage.NameNodeFile.IMAGE_ROLLBACK);
252251
assertEquals(11, expectedCheckpointTxId);
253252

254253
for (int i = 1; i < maxNNCount; i++) {

0 commit comments

Comments
 (0)