hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-14571 Purge TestProcessBasedCluster; it does nothing and then fails
Date Wed, 07 Oct 2015 05:55:05 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.1 2c6628980 -> e107e9ce0


HBASE-14571 Purge TestProcessBasedCluster; it does nothing and then fails


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

Branch: refs/heads/branch-1.1
Commit: e107e9ce07bf78acdfa282b5358e35c219f1f085
Parents: 2c66289
Author: stack <stack@apache.org>
Authored: Tue Oct 6 22:49:22 2015 -0700
Committer: stack <stack@apache.org>
Committed: Tue Oct 6 22:54:53 2015 -0700

----------------------------------------------------------------------
 .../hbase/util/TestProcessBasedCluster.java     | 94 --------------------
 1 file changed, 94 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e107e9ce/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestProcessBasedCluster.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestProcessBasedCluster.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestProcessBasedCluster.java
deleted file mode 100644
index 76e04e8..0000000
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestProcessBasedCluster.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
-
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.hadoop.hbase.util;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-
-import java.io.File;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.hadoop.hbase.HBaseTestingUtility;
-import org.apache.hadoop.hbase.HColumnDescriptor;
-import org.apache.hadoop.hbase.HTestConst;
-import org.apache.hadoop.hbase.client.HTable;
-import org.apache.hadoop.hbase.client.Result;
-import org.apache.hadoop.hbase.client.ResultScanner;
-import org.apache.hadoop.hbase.testclassification.MediumTests;
-import org.apache.hadoop.hbase.client.Table;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-/**
- * A basic unit test that spins up a local HBase cluster.
- */
-@Category(MediumTests.class)
-public class TestProcessBasedCluster {
-
-  private static final Log LOG = LogFactory.getLog(TestProcessBasedCluster.class);
-
-  private static final int COLS_PER_ROW = 5;
-  private static final int FLUSHES = 5;
-  private static final int NUM_REGIONS = 5;
-  private static final int ROWS_PER_FLUSH = 5;
-
-  private static final HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();
-
-  // DISABLED BECAUSE FLAKEY @Test(timeout=300 * 1000)
-  public void testProcessBasedCluster() throws Exception {
-    ProcessBasedLocalHBaseCluster cluster = new ProcessBasedLocalHBaseCluster(
-        TEST_UTIL.getConfiguration(), 2, 3);
-    cluster.startMiniDFS();
-    cluster.startHBase();
-    try {
-      TEST_UTIL.createRandomTable(HTestConst.DEFAULT_TABLE_STR,
-          HTestConst.DEFAULT_CF_STR_SET,
-          HColumnDescriptor.DEFAULT_VERSIONS, COLS_PER_ROW, FLUSHES, NUM_REGIONS,
-          ROWS_PER_FLUSH);
-      Table table = new HTable(TEST_UTIL.getConfiguration(), HTestConst.DEFAULT_TABLE);
-      ResultScanner scanner = table.getScanner(HTestConst.DEFAULT_CF_BYTES);
-      Result result;
-      int rows = 0;
-      int cols = 0;
-      while ((result = scanner.next()) != null) {
-        ++rows;
-        cols += result.getFamilyMap(HTestConst.DEFAULT_CF_BYTES).size();
-      }
-      LOG.info("Read " + rows + " rows, " + cols + " columns");
-      scanner.close();
-      table.close();
-
-      // These numbers are deterministic, seeded by table name.
-      assertEquals(19, rows);
-      assertEquals(35, cols);
-    } catch (Exception ex) {
-      LOG.error(ex);
-      throw ex;
-    } finally {
-      cluster.shutdown();
-    }
-  }
-
-  @Test
-  public void testHomePath() {
-    File pom = new File(HBaseHomePath.getHomePath(), "pom.xml");
-    assertTrue(pom.getPath() + " does not exist", pom.exists());
-  }
-
-}


Mime
View raw message