Browse Source

HDFS-10555: Unable to loadFSEdits due to a failure in readCachePoolInfo. Contributed by Uma Maheswara Rao G

Uma Maheswara Rao G 8 years ago
parent
commit
01643020d2

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImageSerialization.java

@@ -683,7 +683,7 @@ public class FSImageSerialization {
     if ((flags & 0x20) != 0) {
       info.setDefaultReplication(readShort(in));
     }
-    if ((flags & ~0x2F) != 0) {
+    if ((flags & ~0x3F) != 0) {
       throw new IOException("Unknown flag in CachePoolInfo: " + flags);
     }
     return info;