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:
parent
dcb0b85333
commit
1d96e36013
@ -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)
|
||||
|
@ -742,7 +742,7 @@ private void loadEntries(DataInput in) throws IOException {
|
||||
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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user