You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by jm...@apache.org on 2021/04/21 17:56:09 UTC
[accumulo] branch main updated: Pom changes to allow reuseForks to
be set to true (#2015)
This is an automated email from the ASF dual-hosted git repository.
jmanno pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push:
new 5c4e196 Pom changes to allow reuseForks to be set to true (#2015)
5c4e196 is described below
commit 5c4e1962097584e4b4269def73bce6be54c2493b
Author: Jeffrey Manno <je...@gmail.com>
AuthorDate: Wed Apr 21 13:56:01 2021 -0400
Pom changes to allow reuseForks to be set to true (#2015)
* Created second execution to run the few tests that cannot run with reuseForks being true.
---
core/pom.xml | 33 +++++++++++++++++++++++++++++++++
pom.xml | 2 +-
server/tserver/pom.xml | 25 +++++++++++++++++++++++++
3 files changed, 59 insertions(+), 1 deletion(-)
diff --git a/core/pom.xml b/core/pom.xml
index c5e9552..36d9dc6 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -195,6 +195,39 @@
</excludes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!-- Tests that cannot run with reuseForks=true -->
+ <excludes>
+ <exclude>**/TableIdTest.java</exclude>
+ <exclude>**/HadoopCredentialProviderTest.java</exclude>
+ <exclude>**/IdleRatioScanPrioritizerTest.java</exclude>
+ <exclude>**/TestCfCqSlice.java</exclude>
+ <exclude>**/TestCfCqSliceSeekingFilter.java</exclude>
+ </excludes>
+ </configuration>
+ <executions>
+ <execution>
+ <id>reuseForks-false-tests</id>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <reuseForks>false</reuseForks>
+ <excludes combine.self="override" />
+ <includes>
+ <include>**/TableIdTest.java</include>
+ <include>**/HadoopCredentialProviderTest.java</include>
+ <include>**/IdleRatioScanPrioritizerTest.java</include>
+ <include>**/TestCfCqSlice.java</include>
+ <include>**/TestCfCqSliceSeekingFilter.java</include>
+ </includes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
diff --git a/pom.xml b/pom.xml
index 54dca69..b41ac03 100644
--- a/pom.xml
+++ b/pom.xml
@@ -149,7 +149,7 @@
<surefire.failIfNoSpecifiedTests>false</surefire.failIfNoSpecifiedTests>
<surefire.forkCount>1C</surefire.forkCount>
<surefire.groups />
- <surefire.reuseForks>false</surefire.reuseForks>
+ <surefire.reuseForks>true</surefire.reuseForks>
<!-- 3.0.0-M5 causes RowHashIT.test and ShellServerIT.scansWithClassLoaderContext to fail -->
<surefire.version>3.0.0-M4</surefire.version>
<!-- Thrift version -->
diff --git a/server/tserver/pom.xml b/server/tserver/pom.xml
index 362149a..69bb4b0 100644
--- a/server/tserver/pom.xml
+++ b/server/tserver/pom.xml
@@ -151,6 +151,31 @@
</excludes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!-- Tests that cannot run with reuseForks=true -->
+ <excludes>
+ <exclude>**/AssignmentWatcherTest.java</exclude>
+ </excludes>
+ </configuration>
+ <executions>
+ <execution>
+ <id>reuseForks-false-tests</id>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <reuseForks>false</reuseForks>
+ <excludes combine.self="override" />
+ <includes>
+ <include>**/AssignmentWatcherTest.java</include>
+ </includes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
</build>