Skip to content

Commit 30257ae

Browse files
author
Aswin M Prabhu
committed
Fix unit tests
1 parent 318a281 commit 30257ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/server/JournalNodeSyncer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ private void formatWithSyncer() {
251251
storage = PBHelper.convert(storageInfoResponse, HdfsServerConstants.NodeType.JOURNAL_NODE);
252252
if (storage.getNamespaceID() == 0) {
253253
LOG.error("Got invalid StorageInfo from " + jnProxy);
254+
storage = null;
254255
continue;
255256
}
256257
LOG.info("Got StorageInfo " + storage + " from " + jnProxy);

0 commit comments

Comments
 (0)