HDFS-5089. When a LayoutVersion support SNAPSHOT, it must support FSIMAGE_NAME_OPTIMIZATION.
This commit is contained in:
parent
603293da92
commit
aef8dbde91
|
@ -610,6 +610,9 @@ Release 2.6.0 - UNRELEASED
|
||||||
HDFS-7208. NN doesn't schedule replication when a DN storage fails.
|
HDFS-7208. NN doesn't schedule replication when a DN storage fails.
|
||||||
(Ming Ma via szetszwo)
|
(Ming Ma via szetszwo)
|
||||||
|
|
||||||
|
HDFS-5089. When a LayoutVersion support SNAPSHOT, it must support
|
||||||
|
FSIMAGE_NAME_OPTIMIZATION. (szetszwo)
|
||||||
|
|
||||||
BREAKDOWN OF HDFS-6134 AND HADOOP-10150 SUBTASKS AND RELATED JIRAS
|
BREAKDOWN OF HDFS-6134 AND HADOOP-10150 SUBTASKS AND RELATED JIRAS
|
||||||
|
|
||||||
HDFS-6387. HDFS CLI admin tool for creating & deleting an
|
HDFS-6387. HDFS CLI admin tool for creating & deleting an
|
||||||
|
|
|
@ -107,8 +107,8 @@ public class LayoutVersion {
|
||||||
RESERVED_REL1_2_0(-41, -32, "Reserved for release 1.2.0", true, CONCAT),
|
RESERVED_REL1_2_0(-41, -32, "Reserved for release 1.2.0", true, CONCAT),
|
||||||
ADD_INODE_ID(-42, -40, "Assign a unique inode id for each inode", false),
|
ADD_INODE_ID(-42, -40, "Assign a unique inode id for each inode", false),
|
||||||
SNAPSHOT(-43, "Support for snapshot feature"),
|
SNAPSHOT(-43, "Support for snapshot feature"),
|
||||||
RESERVED_REL1_3_0(-44, -41,
|
RESERVED_REL1_3_0(-44, -41, "Reserved for release 1.3.0", true,
|
||||||
"Reserved for release 1.3.0", true, ADD_INODE_ID, SNAPSHOT),
|
ADD_INODE_ID, SNAPSHOT, FSIMAGE_NAME_OPTIMIZATION),
|
||||||
OPTIMIZE_SNAPSHOT_INODES(-45, -43,
|
OPTIMIZE_SNAPSHOT_INODES(-45, -43,
|
||||||
"Reduce snapshot inode memory footprint", false),
|
"Reduce snapshot inode memory footprint", false),
|
||||||
SEQUENTIAL_BLOCK_ID(-46, "Allocate block IDs sequentially and store " +
|
SEQUENTIAL_BLOCK_ID(-46, "Allocate block IDs sequentially and store " +
|
||||||
|
|
|
@ -120,4 +120,19 @@ public class TestLayoutVersion {
|
||||||
NameNodeLayoutVersion.supports(feature, lv));
|
NameNodeLayoutVersion.supports(feature, lv));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When a LayoutVersion support SNAPSHOT, it must support
|
||||||
|
* FSIMAGE_NAME_OPTIMIZATION.
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testSNAPSHOT() {
|
||||||
|
for(Feature f : Feature.values()) {
|
||||||
|
final int version = f.getInfo().getLayoutVersion();
|
||||||
|
if (NameNodeLayoutVersion.supports(Feature.SNAPSHOT, version)) {
|
||||||
|
assertTrue(NameNodeLayoutVersion.supports(
|
||||||
|
Feature.FSIMAGE_NAME_OPTIMIZATION, version));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue