PHOENIX-3181 Run test methods in parallel to reduce test suite run time

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

Branch: refs/heads/calcite
Commit: 3032a6f6f70fe0abdf24731fdc0058e22f345247
Parents: 58596bb
Author: James Taylor <jamestay...@apache.org>
Authored: Wed Sep 28 15:43:42 2016 -0700
Committer: James Taylor <jamestay...@apache.org>
Committed: Wed Sep 28 15:43:42 2016 -0700

----------------------------------------------------------------------
 .../apache/phoenix/end2end/ParallelRunListener.java   |  2 +-
 pom.xml                                               | 14 ++++++++++----
 2 files changed, 11 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/3032a6f6/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelRunListener.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelRunListener.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelRunListener.java
index 27808f5..bf3a969 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelRunListener.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelRunListener.java
@@ -24,7 +24,7 @@ import org.junit.runner.notification.RunListener;
 public class ParallelRunListener extends RunListener {
     // This causes output to go to the console when run through maven
     // private static final Log LOG = 
LogFactory.getLog(ParallelRunListener.class);
-    private static final int TEAR_DOWN_THRESHOLD = 150;
+    private static final int TEAR_DOWN_THRESHOLD = 100;
     
     private int testRuns = 0;
 

http://git-wip-us.apache.org/repos/asf/phoenix/blob/3032a6f6/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 85e6970..dac2b4d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -234,9 +234,8 @@
                 <runOrder>alphabetical</runOrder>
                 <reuseForks>true</reuseForks>
                 <runOrder>alphabetical</runOrder>
-                <!--parallel>classesAndMethods</parallel>
+                <parallel>classesAndMethods</parallel>
                 <threadCount>20</threadCount>
-               <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</argLine>
                 
<redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
                 <shutdown>kill</shutdown>
@@ -262,9 +261,16 @@
                 <runOrder>alphabetical</runOrder>
                 <reuseForks>true</reuseForks>
                 <runOrder>alphabetical</runOrder>
-                <!--parallel>classesAndMethods</parallel>
+                <parallel>classesAndMethods</parallel>
                 <threadCount>20</threadCount>
-               <enableAssertions>false</enableAssertions-->
+                <!-- We're intermittantly hitting this assertion:
+                     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</argLine>
                 
<redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
                 <shutdown>kill</shutdown>

Reply via email to