You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ja...@apache.org on 2016/11/05 06:36:43 UTC
[1/2] phoenix git commit: PHOENIX-3456 Use unique table names for
MutableIndexFailureIT
Repository: phoenix
Updated Branches:
refs/heads/master 77ab7dfa2 -> 10c81438b
PHOENIX-3456 Use unique table names for MutableIndexFailureIT
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/d5b8016d
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/d5b8016d
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/d5b8016d
Branch: refs/heads/master
Commit: d5b8016db1a9648f83455942cdd0179b9d5981ab
Parents: 77ab7df
Author: James Taylor <ja...@apache.org>
Authored: Fri Nov 4 22:58:44 2016 -0700
Committer: James Taylor <ja...@apache.org>
Committed: Fri Nov 4 23:20:14 2016 -0700
----------------------------------------------------------------------
.../end2end/index/MutableIndexFailureIT.java | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/phoenix/blob/d5b8016d/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
index 4263890..687b2c2 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
@@ -43,9 +43,9 @@ import org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment;
import org.apache.hadoop.hbase.coprocessor.SimpleRegionObserver;
import org.apache.hadoop.hbase.regionserver.MiniBatchOperationInProgress;
import org.apache.hadoop.hbase.util.Bytes;
-import org.apache.phoenix.end2end.BaseOwnClusterIT;
import org.apache.phoenix.end2end.NeedsOwnMiniClusterTest;
import org.apache.phoenix.jdbc.PhoenixConnection;
+import org.apache.phoenix.query.BaseTest;
import org.apache.phoenix.query.QueryConstants;
import org.apache.phoenix.query.QueryServices;
import org.apache.phoenix.schema.PIndexState;
@@ -56,6 +56,7 @@ import org.apache.phoenix.util.ReadOnlyProps;
import org.apache.phoenix.util.SchemaUtil;
import org.apache.phoenix.util.StringUtil;
import org.apache.phoenix.util.TestUtil;
+import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
@@ -74,20 +75,26 @@ import com.google.common.collect.Maps;
@Category(NeedsOwnMiniClusterTest.class)
@RunWith(Parameterized.class)
-public class MutableIndexFailureIT extends BaseOwnClusterIT {
- public static volatile boolean FAIL_WRITE = false;
+public class MutableIndexFailureIT extends BaseTest {
public static final String INDEX_NAME = "IDX";
+
+ public static volatile boolean FAIL_WRITE = false;
+ public static volatile String fullTableName;
private String tableName;
private String indexName;
- public static volatile String fullTableName;
private String fullIndexName;
private final boolean transactional;
private final boolean localIndex;
private final String tableDDLOptions;
private final boolean isNamespaceMapped;
- private String schema = "TEST";
+ private String schema = generateUniqueName();
+
+ @AfterClass
+ public static void doTeardown() throws Exception {
+ tearDownMiniCluster();
+ }
public MutableIndexFailureIT(boolean transactional, boolean localIndex, boolean isNamespaceMapped) {
this.transactional = transactional;
[2/2] phoenix git commit: PHOENIX-3457 Disable parallel run of tests
and increase memory
Posted by ja...@apache.org.
PHOENIX-3457 Disable parallel run of tests and increase memory
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/10c81438
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/10c81438
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/10c81438
Branch: refs/heads/master
Commit: 10c81438b6146232caa970d7fd485412bd680f2c
Parents: d5b8016
Author: James Taylor <ja...@apache.org>
Authored: Fri Nov 4 23:35:27 2016 -0700
Committer: James Taylor <ja...@apache.org>
Committed: Fri Nov 4 23:35:27 2016 -0700
----------------------------------------------------------------------
pom.xml | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/phoenix/blob/10c81438/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 5f7021f..2ec1460 100644
--- a/pom.xml
+++ b/pom.xml
@@ -234,8 +234,8 @@
<runOrder>alphabetical</runOrder>
<reuseForks>true</reuseForks>
<runOrder>alphabetical</runOrder>
- <parallel>methods</parallel>
- <threadCount>20</threadCount>
+ <!--parallel>methods</parallel>
+ <threadCount>20</threadCount-->
<argLine>-Xmx2000m -XX:MaxPermSize=256m -Djava.security.egd=file:/dev/./urandom "-Djava.library.path=${hadoop.library.path}${path.separator}${java.library.path}" -XX:NewRatio=4 -XX:SurvivorRatio=8 -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -XX:CMSInitiatingOccupancyFraction=68 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./target/</argLine>
<redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
<shutdown>kill</shutdown>
@@ -261,17 +261,17 @@
<runOrder>alphabetical</runOrder>
<reuseForks>true</reuseForks>
<runOrder>alphabetical</runOrder>
- <parallel>methods</parallel>
- <threadCount>20</threadCount>
- <!-- We're intermittantly hitting this assertion:
+ <!--parallel>methods</parallel>
+ <threadCount>20</threadCount-->
+ <!-- We're intermittantly hitting this assertion when running in parallel:
Caused by: java.lang.AssertionError: we should never remove a different context
at org.apache.hadoop.hbase.regionserver.HRegion$RowLockContext.cleanUp(HRegion.java:5206)
at org.apache.hadoop.hbase.regionserver.HRegion$RowLockImpl.release(HRegion.java:5246)
at org.apache.phoenix.coprocessor.MetaDataEndpointImpl.doGetTable(MetaDataEndpointImpl.java:2898)
at org.apache.phoenix.coprocessor.MetaDataEndpointImpl.doGetTable(MetaDataEndpointImpl.java:2835)
at org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(MetaDataEndpointImpl.java:490) -->
- <enableAssertions>false</enableAssertions>
- <argLine>-Xmx2000m -XX:MaxPermSize=256m -Djava.security.egd=file:/dev/./urandom "-Djava.library.path=${hadoop.library.path}${path.separator}${java.library.path}" -XX:NewRatio=4 -XX:SurvivorRatio=8 -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -XX:CMSInitiatingOccupancyFraction=68 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./target/</argLine>
+ <!--enableAssertions>false</enableAssertions-->
+ <argLine>-Xmx3000m -XX:MaxPermSize=256m -Djava.security.egd=file:/dev/./urandom "-Djava.library.path=${hadoop.library.path}${path.separator}${java.library.path}" -XX:NewRatio=4 -XX:SurvivorRatio=8 -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -XX:CMSInitiatingOccupancyFraction=68 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./target/</argLine>
<redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
<shutdown>kill</shutdown>
<testSourceDirectory>${basedir}/src/it/java</testSourceDirectory>