You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by zh...@apache.org on 2016/08/30 06:37:44 UTC
hadoop git commit: HDFS-10814. Add assertion for
getNumEncryptionZones when no EZ is created. Contributed by Vinitha Reddy
Gankidi.
Repository: hadoop
Updated Branches:
refs/heads/trunk cd5e10ccc -> 4bd45f54e
HDFS-10814. Add assertion for getNumEncryptionZones when no EZ is created. Contributed by Vinitha Reddy Gankidi.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/4bd45f54
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/4bd45f54
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/4bd45f54
Branch: refs/heads/trunk
Commit: 4bd45f54eedd449a98a90540698c6ceb47454fec
Parents: cd5e10c
Author: Zhe Zhang <zh...@apache.org>
Authored: Mon Aug 29 23:37:26 2016 -0700
Committer: Zhe Zhang <zh...@apache.org>
Committed: Mon Aug 29 23:37:26 2016 -0700
----------------------------------------------------------------------
.../test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/4bd45f54/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java
index e221fe4..53c12ec 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java
@@ -326,7 +326,9 @@ public class TestEncryptionZones {
public void testBasicOperations() throws Exception {
int numZones = 0;
-
+ /* Number of EZs should be 0 if no EZ is created */
+ assertEquals("Unexpected number of encryption zones!", numZones,
+ cluster.getNamesystem().getNumEncryptionZones());
/* Test failure of create EZ on a directory that doesn't exist. */
final Path zoneParent = new Path("/zones");
final Path zone1 = new Path(zoneParent, "zone1");
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org