Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@ Note that the dependency check report generation is only enabled when run on Jav
The reports are accessible via `target/site/index.html`, under the main project,
as well as each of the subprojects. (not every project has all reports)

Running tests on local cluster
-----------------------

Run IT tests part of a defined execution goal in pom.xml (e.g SignOffTests)
`$ mvn failsafe:integration-test@SignOffTests failsafe:verify@SignOffTests -Dhbase.profile=2.5
-Dskip.code-coverage -Dmaven.test.failure.ignore=true -Dhbase.test.cluster.distributed=true
-Dhbase.zookeeper.quorum=localhost -Dhbase.zookeeper.property.clientPort=2181`

Generate Apache Web Site
------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/**
* End to end tests for {@link AbsFunction}
*/
@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class AbsFunctionEnd2EndIT extends ParallelStatsDisabledIT {

private static final String TABLE_NAME = generateUniqueName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class})
public class AggregateIT extends BaseAggregateIT {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
import org.junit.experimental.categories.Category;
import org.junit.runners.Parameterized.Parameters;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class AggregateQueryIT extends BaseQueryIT {

@Parameters(name="AggregateQueryIT_{index}") // name is used by failsafe as file name in reports
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import java.util.HashMap;
import java.util.Map;

@Category(NeedsOwnMiniClusterTest.class)
@Category({NeedsOwnMiniClusterTest.class, SupportsDistributedClusterTest.class})
public class AggregateQueryWithRegionMoves2IT extends AggregateQueryWithRegionMovesIT {

private static final Logger LOGGER =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

@Category(NeedsOwnMiniClusterTest.class)
@Category({NeedsOwnMiniClusterTest.class, SupportsDistributedClusterTest.class})
public class AggregateQueryWithRegionMovesIT extends BaseQueryWithRegionMovesIT {

@Parameters(name = "AggregateQueryWithRegionMovesIT_{index}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import java.util.HashMap;
import java.util.Map;

@Category(NeedsOwnMiniClusterTest.class)
@Category({NeedsOwnMiniClusterTest.class, SupportsDistributedClusterTest.class})
public class AggregateWithRegionMoves2IT extends AggregateWithRegionMovesIT {

private static final Logger LOGGER =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

@Category(NeedsOwnMiniClusterTest.class)
@Category({NeedsOwnMiniClusterTest.class})
public class AggregateWithRegionMovesIT extends BaseAggregateWithRegionMovesIT {

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
@RunWith(Parameterized.class)
public class AlterAddCascadeIndexIT extends ParallelStatsDisabledIT {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* Basic tests for Alter Session Statements
*
*/
@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class AlterSessionIT extends ParallelStatsDisabledIT {

private String tableName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
* or at the end of test class.
*
*/
@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class})
@RunWith(Parameterized.class)
public class AlterTableIT extends ParallelStatsDisabledIT {
private String schemaName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
import org.mockito.AdditionalMatchers;
import org.mockito.Mockito;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class AppendOnlySchemaIT extends ParallelStatsDisabledIT {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import org.apache.phoenix.thirdparty.com.google.common.primitives.Floats;


@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class ArithmeticQueryIT extends ParallelStatsDisabledIT {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import org.junit.experimental.categories.Category;
import org.apache.phoenix.thirdparty.com.google.common.primitives.Floats;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class Array1IT extends ArrayIT {
private void assertArrayGetString(ResultSet rs, int arrayIndex, Array expectedArray, String expectedString)
throws SQLException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class Array2IT extends ArrayIT {

private static final String TEST_QUERY = "select ?[2] from \"SYSTEM\".\"CATALOG\" limit 1";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class Array3IT extends ArrayIT {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class ArrayAppendFunctionIT extends ParallelStatsDisabledIT {
private String initTables(Connection conn) throws Exception {
String tableName = generateUniqueName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class ArrayConcatFunctionIT extends ParallelStatsDisabledIT {

private String initTables(Connection conn) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class ArrayFillFunctionIT extends ParallelStatsDisabledIT {

private String tableName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class ArrayPrependFunctionIT extends ParallelStatsDisabledIT {

private void initTableWithVarArray(Connection conn, String tableName, String type, Object[] objectArray, String value) throws SQLException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class ArrayRemoveFunctionIT extends ParallelStatsDisabledIT {

private Connection conn;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class ArrayToStringFunctionIT extends ParallelStatsDisabledIT {
private String tableName;
private Connection conn;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class ArraysWithNullsIT extends ParallelStatsDisabledIT {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertEquals;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class})
public class AuditLoggingIT extends ParallelStatsDisabledIT {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import org.junit.experimental.categories.Category;


@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class AutoCommitIT extends ParallelStatsDisabledIT {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
@RunWith(Parameterized.class)
public class AutoPartitionViewsIT extends ParallelStatsDisabledIT {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
*/

@RunWith(Parameterized.class)
@Category(NeedsOwnMiniClusterTest.class)
@Category({NeedsOwnMiniClusterTest.class, SupportsDistributedClusterTest.class})
public class BackwardCompatibilityIT {

private static final Logger LOGGER = LoggerFactory.getLogger(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

@Category(NeedsOwnMiniClusterTest.class)
@Category({NeedsOwnMiniClusterTest.class, SupportsDistributedClusterTest.class})
public class BaseAggregateWithRegionMoves2IT extends ParallelStatsDisabledWithRegionMovesIT {

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import java.util.HashMap;
import java.util.Map;

@Category(NeedsOwnMiniClusterTest.class)
@Category({NeedsOwnMiniClusterTest.class, SupportsDistributedClusterTest.class})
public class BaseAggregateWithRegionMoves3IT extends BaseAggregateWithRegionMoves2IT {

private static final Logger LOGGER =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

import static org.apache.phoenix.util.TestUtil.TEST_PROPERTIES;

@Category(NeedsOwnMiniClusterTest.class)
@Category({NeedsOwnMiniClusterTest.class, SupportsDistributedClusterTest.class})
public class BaseAggregateWithRegionMoves4IT extends BaseAggregateWithRegionMoves2IT {

private static final Logger LOGGER =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;

@Category(ParallelStatsEnabledTest.class)
@Category({ParallelStatsEnabledTest.class})
@RunWith(Parameterized.class)
public abstract class BaseViewIT extends ParallelStatsEnabledIT {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.junit.experimental.categories.Category;


@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class BinaryRowKeyIT extends ParallelStatsDisabledIT {

private static void initTableValues(String tableName) throws SQLException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/**
* End to end tests for Hexadecimal and Binary literals
*/
@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class BinaryStringLiteralIT extends ParallelStatsDisabledIT {

private static String EMPTY = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import org.junit.experimental.categories.Category;
import org.junit.rules.TemporaryFolder;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class CSVCommonsLoaderIT extends ParallelStatsDisabledIT {

private static final String DATATYPE_TABLE = "DATATYPE";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

import org.apache.phoenix.thirdparty.com.google.common.collect.Lists;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
@RunWith(Parameterized.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class CaseStatementIT extends BaseQueryIT {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
@RunWith(Parameterized.class)
public class CastAndCoerceIT extends BaseQueryIT {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/**
* End to end tests for {@link CbrtFunction}
*/
@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class CbrtFunctionEnd2EndIT extends ParallelStatsDisabledIT {

private static final String KEY = "key";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
//@Category(ParallelStatsDisabledTest.class)

public class ClientHashAggregateIT extends ParallelStatsDisabledIT {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import org.junit.experimental.categories.Category;


@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class CoalesceFunctionIT extends ParallelStatsDisabledIT {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* End2End test that tests the COLLATION_KEY in an ORDER BY clause
*
*/
@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class CollationKeyFunctionIT extends ParallelStatsDisabledIT {

private String tableName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class ColumnEncodedBytesPropIT extends ParallelStatsDisabledIT {

private String generateColsDDL(int numCols) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
import org.junit.experimental.categories.Category;


@Category(ParallelStatsDisabledTest.class)
@Category({ParallelStatsDisabledTest.class, SupportsDistributedClusterTest.class})
public class ColumnProjectionOptimizationIT extends ParallelStatsDisabledIT {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Category(NeedsOwnMiniClusterTest.class)
@Category({NeedsOwnMiniClusterTest.class})
@RunWith(Parameterized.class)
public class ConcurrentMutationsExtendedIT extends ParallelStatsDisabledIT {
private static final Logger LOGGER =
Expand Down
Loading