hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cli...@apache.org
Subject hadoop git commit: HDFS-11591. Block Storage: fix TestCBlockServer test cleanup. Contributed by Xiaoyu Yao
Date Fri, 31 Mar 2017 21:42:19 GMT
Repository: hadoop
Updated Branches:
  refs/heads/HDFS-7240 fbfdf6990 -> d00c07c67


HDFS-11591. Block Storage: fix TestCBlockServer test cleanup. Contributed by Xiaoyu Yao


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/d00c07c6
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/d00c07c6
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/d00c07c6

Branch: refs/heads/HDFS-7240
Commit: d00c07c675b00068ce83dcf1a7ab97ef73cf8222
Parents: fbfdf69
Author: Chen Liang <cliang@apache.org>
Authored: Fri Mar 31 14:41:05 2017 -0700
Committer: Chen Liang <cliang@apache.org>
Committed: Fri Mar 31 14:41:05 2017 -0700

----------------------------------------------------------------------
 .../test/java/org/apache/hadoop/cblock/TestCBlockServer.java | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/d00c07c6/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/cblock/TestCBlockServer.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/cblock/TestCBlockServer.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/cblock/TestCBlockServer.java
index ecc689b..4f816e1 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/cblock/TestCBlockServer.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/cblock/TestCBlockServer.java
@@ -22,6 +22,7 @@ import org.apache.hadoop.cblock.meta.VolumeInfo;
 import org.apache.hadoop.scm.client.ScmClient;
 import org.apache.hadoop.cblock.util.MockStorageClient;
 import org.apache.hadoop.ozone.OzoneConfiguration;
+import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
@@ -47,6 +48,13 @@ public class TestCBlockServer {
     cBlockManager = new CBlockManager(conf, storageClient);
   }
 
+  @AfterClass
+  public static void clean() {
+    cBlockManager.stop();
+    cBlockManager.join();
+    cBlockManager.clean();
+  }
+
   /**
    * Test create volume for different users.
    * @throws Exception


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message