|
@@ -269,7 +269,7 @@ public final class FSImageFormatPBINode {
|
|
+ "name before upgrading to this release.");
|
|
+ "name before upgrading to this release.");
|
|
}
|
|
}
|
|
// NOTE: This does not update space counts for parents
|
|
// NOTE: This does not update space counts for parents
|
|
- if (!parent.addChild(child)) {
|
|
|
|
|
|
+ if (!parent.addChildAtLoading(child)) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
dir.cacheName(child);
|
|
dir.cacheName(child);
|
|
@@ -551,6 +551,8 @@ public final class FSImageFormatPBINode {
|
|
++numImageErrors;
|
|
++numImageErrors;
|
|
}
|
|
}
|
|
if (!inode.isReference()) {
|
|
if (!inode.isReference()) {
|
|
|
|
+ // Serialization must ensure that children are in order, related
|
|
|
|
+ // to HDFS-13693
|
|
b.addChildren(inode.getId());
|
|
b.addChildren(inode.getId());
|
|
} else {
|
|
} else {
|
|
refList.add(inode.asReference());
|
|
refList.add(inode.asReference());
|