HDFS-5388. Loading fsimage fails to find cache pools during namenode startup (Chris Nauroth via Colin Patrick McCabe)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-4949@1533616 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Colin McCabe 2013-10-18 20:20:20 +00:00
parent dcb0b85333
commit 1d96e36013
2 changed files with 4 additions and 1 deletions

View File

@ -101,3 +101,6 @@ HDFS-4949 (Unreleased)
-replication parameter. (cnauroth)
HDFS-5383. fix broken caching unit tests. (Andrew Wang)
HDFS-5388. Loading fsimage fails to find cache pools during namenode
startup. (Chris Nauroth via Colin Patrick McCabe)

View File

@ -742,7 +742,7 @@ public final class CacheManager {
String poolName = Text.readString(in);
// Get pool reference by looking it up in the map
CachePool pool = cachePools.get(poolName);
if (pool != null) {
if (pool == null) {
throw new IOException("Entry refers to pool " + poolName +
", which does not exist.");
}