HDFS-7061. Add test to verify encryption zone creation after NameNode restart without saving namespace. Contributed by Stephen Chu.
(cherry picked from commit fc741b5d78
)
This commit is contained in:
parent
5cdb24d4b1
commit
dd3e28d434
|
@ -197,6 +197,9 @@ Release 2.6.0 - UNRELEASED
|
||||||
HDFS-6482. Use block ID-based block layout on datanodes (James Thomas via
|
HDFS-6482. Use block ID-based block layout on datanodes (James Thomas via
|
||||||
Colin Patrick McCabe)
|
Colin Patrick McCabe)
|
||||||
|
|
||||||
|
HDFS-7061. Add test to verify encryption zone creation after NameNode
|
||||||
|
restart without saving namespace. (Stephen Chu via wang)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-6690. Deduplicate xattr names in memory. (wang)
|
HDFS-6690. Deduplicate xattr names in memory. (wang)
|
||||||
|
|
|
@ -338,6 +338,16 @@ public class TestEncryptionZones {
|
||||||
cluster.restartNameNode(true);
|
cluster.restartNameNode(true);
|
||||||
assertNumZones(numZones);
|
assertNumZones(numZones);
|
||||||
assertZonePresent(null, zone1.toString());
|
assertZonePresent(null, zone1.toString());
|
||||||
|
|
||||||
|
// Verify newly added ez is present after restarting the NameNode
|
||||||
|
// without persisting the namespace.
|
||||||
|
Path nonpersistZone = new Path("/nonpersistZone");
|
||||||
|
fsWrapper.mkdir(nonpersistZone, FsPermission.getDirDefault(), false);
|
||||||
|
dfsAdmin.createEncryptionZone(nonpersistZone, TEST_KEY);
|
||||||
|
numZones++;
|
||||||
|
cluster.restartNameNode(true);
|
||||||
|
assertNumZones(numZones);
|
||||||
|
assertZonePresent(null, nonpersistZone.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue