HBASE-4955 Use the official versions of surefire (Alex Newman)

This commit is contained in:
Nicolas Liochon 2014-08-21 10:50:14 +02:00
parent e05e27f2d5
commit 018bbc0993
2 changed files with 102 additions and 114 deletions

View File

@ -38,6 +38,7 @@ import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.GenericTestUtils; import org.apache.hadoop.hbase.GenericTestUtils;
import org.apache.hadoop.hbase.SmallTests; import org.apache.hadoop.hbase.SmallTests;
import org.apache.hadoop.net.NetUtils; import org.apache.hadoop.net.NetUtils;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.experimental.categories.Category; import org.junit.experimental.categories.Category;
@ -104,6 +105,10 @@ public class TestServletFilter extends HttpServerFunctionalTest {
} }
@Test @Test
@Ignore
//From stack
// Its a 'foreign' test, one that came in from hadoop when we copy/pasted http
// It's second class. Could comment it out if only failing test (as per @nkeywal sort of)
public void testServletFilter() throws Exception { public void testServletFilter() throws Exception {
Configuration conf = new Configuration(); Configuration conf = new Configuration();

211
pom.xml
View File

@ -516,13 +516,8 @@
<configuration> <configuration>
<failIfNoTests>false</failIfNoTests> <failIfNoTests>false</failIfNoTests>
<skip>${surefire.skipFirstPart}</skip> <skip>${surefire.skipFirstPart}</skip>
<forkMode>${surefire.firstPartForkMode}</forkMode> <forkCount>${surefire.firstPartForkCount}</forkCount>
<parallel>${surefire.firstPartParallel}</parallel> <reuseForks>false</reuseForks>
<perCoreThreadCount>false</perCoreThreadCount>
<threadCount>${surefire.firstPartThreadCount}</threadCount>
<parallel>classes</parallel>
<!-- surefire hack, if not we're
using method parallelization class ! -->
<testFailureIgnore>${surefire.testFailureIgnore}</testFailureIgnore> <testFailureIgnore>${surefire.testFailureIgnore}</testFailureIgnore>
<forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSeconds> <forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSeconds>
<!--Allocate some direct memory for direct memory tests--> <!--Allocate some direct memory for direct memory tests-->
@ -539,12 +534,8 @@
<configuration> <configuration>
<skip>${surefire.skipSecondPart}</skip> <skip>${surefire.skipSecondPart}</skip>
<testFailureIgnore>${surefire.testFailureIgnore}</testFailureIgnore> <testFailureIgnore>${surefire.testFailureIgnore}</testFailureIgnore>
<forkMode>${surefire.secondPartForkMode}</forkMode> <reuseForks>false</reuseForks>
<perCoreThreadCount>false</perCoreThreadCount> <forkCount>${surefire.secondPartForkCount}</forkCount>
<threadCount>${surefire.secondPartThreadCount}</threadCount>
<parallel>classes</parallel>
<!-- surefire hack, if not we're using method
parallelisation class ! -->
<groups>${surefire.secondPartGroups}</groups> <groups>${surefire.secondPartGroups}</groups>
</configuration> </configuration>
</execution> </execution>
@ -709,7 +700,7 @@
<attach>false</attach> <attach>false</attach>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-maven-plugins</artifactId> <artifactId>hadoop-maven-plugins</artifactId>
<version>${hadoop-two.version}</version> <version>${hadoop-two.version}</version>
@ -717,7 +708,7 @@
<protocVersion>${protobuf.version}</protocVersion> <protocVersion>${protobuf.version}</protocVersion>
<protocCommand>${protoc.path}</protocCommand> <protocCommand>${protoc.path}</protocCommand>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
<plugins> <plugins>
@ -782,11 +773,11 @@
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.sf.xslthl</groupId> <groupId>net.sf.xslthl</groupId>
<artifactId>xslthl</artifactId> <artifactId>xslthl</artifactId>
<version>2.1.0</version> <version>2.1.0</version>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<configuration> <configuration>
<highlightSource>1</highlightSource> <highlightSource>1</highlightSource>
@ -816,10 +807,10 @@
<targetDirectory>${basedir}/target/docbkx/book</targetDirectory> <targetDirectory>${basedir}/target/docbkx/book</targetDirectory>
<preProcess> <preProcess>
<copy todir="target/docbkx/book/images"> <copy todir="target/docbkx/book/images">
<fileset dir="src/main/site/resources/images/" /> <fileset dir="src/main/site/resources/images/"/>
</copy> </copy>
<copy todir="target/docbkx/book/css"> <copy todir="target/docbkx/book/css">
<fileset dir="src/main/site/resources/css/" /> <fileset dir="src/main/site/resources/css/"/>
</copy> </copy>
</preProcess> </preProcess>
</configuration> </configuration>
@ -834,10 +825,10 @@
<targetDirectory>${basedir}/target/docbkx/</targetDirectory> <targetDirectory>${basedir}/target/docbkx/</targetDirectory>
<preProcess> <preProcess>
<copy todir="target/docbkx/images"> <copy todir="target/docbkx/images">
<fileset dir="src/main/site/resources/images/" /> <fileset dir="src/main/site/resources/images/"/>
</copy> </copy>
<copy todir="target/docbkx/css"> <copy todir="target/docbkx/css">
<fileset dir="src/main/site/resources/css/" /> <fileset dir="src/main/site/resources/css/"/>
</copy> </copy>
</preProcess> </preProcess>
</configuration> </configuration>
@ -977,16 +968,13 @@
<server.test.jar>hbase-server-${project.version}-tests.jar</server.test.jar> <server.test.jar>hbase-server-${project.version}-tests.jar</server.test.jar>
<common.test.jar>hbase-common-${project.version}-tests.jar</common.test.jar> <common.test.jar>hbase-common-${project.version}-tests.jar</common.test.jar>
<it.test.jar>hbase-it-${project.version}-tests.jar</it.test.jar> <it.test.jar>hbase-it-${project.version}-tests.jar</it.test.jar>
<surefire.version>2.12-TRUNK-HBASE-2</surefire.version> <surefire.version>2.17</surefire.version>
<surefire.provider>surefire-junit47</surefire.provider> <surefire.provider>surefire-junit47</surefire.provider>
<!-- default: run small & medium, medium with 2 threads --> <!-- default: run small & medium, medium with 2 threads -->
<surefire.skipFirstPart>false</surefire.skipFirstPart> <surefire.skipFirstPart>false</surefire.skipFirstPart>
<surefire.skipSecondPart>false</surefire.skipSecondPart> <surefire.skipSecondPart>false</surefire.skipSecondPart>
<surefire.firstPartForkMode>once</surefire.firstPartForkMode> <surefire.firstPartForkCount>1</surefire.firstPartForkCount>
<surefire.firstPartParallel>classes</surefire.firstPartParallel> <surefire.secondPartForkCount>2</surefire.secondPartForkCount>
<surefire.secondPartForkMode>perThread</surefire.secondPartForkMode>
<surefire.firstPartThreadCount>1</surefire.firstPartThreadCount>
<surefire.secondPartThreadCount>2</surefire.secondPartThreadCount>
<surefire.firstPartGroups>org.apache.hadoop.hbase.SmallTests</surefire.firstPartGroups> <surefire.firstPartGroups>org.apache.hadoop.hbase.SmallTests</surefire.firstPartGroups>
<surefire.secondPartGroups>org.apache.hadoop.hbase.MediumTests</surefire.secondPartGroups> <surefire.secondPartGroups>org.apache.hadoop.hbase.MediumTests</surefire.secondPartGroups>
<surefire.testFailureIgnore>false</surefire.testFailureIgnore> <surefire.testFailureIgnore>false</surefire.testFailureIgnore>
@ -1081,12 +1069,12 @@
<type>test-jar</type> <type>test-jar</type>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.hbase</groupId> <groupId>org.apache.hbase</groupId>
<artifactId>hbase-testing-util</artifactId> <artifactId>hbase-testing-util</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.hbase</groupId> <groupId>org.apache.hbase</groupId>
<artifactId>hbase-prefix-tree</artifactId> <artifactId>hbase-prefix-tree</artifactId>
@ -1586,20 +1574,20 @@
<dependency> <dependency>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId> <artifactId>hadoop-hdfs</artifactId>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>javax.servlet.jsp</groupId> <groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId> <artifactId>jsp-api</artifactId>
</exclusion> </exclusion>
<exclusion> <exclusion>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId> <artifactId>servlet-api</artifactId>
</exclusion> </exclusion>
<exclusion> <exclusion>
<groupId>stax</groupId> <groupId>stax</groupId>
<artifactId>stax-api</artifactId> <artifactId>stax-api</artifactId>
</exclusion> </exclusion>
</exclusions> </exclusions>
<version>${hadoop-two.version}</version> <version>${hadoop-two.version}</version>
</dependency> </dependency>
<dependency> <dependency>
@ -1608,20 +1596,20 @@
<version>${hadoop-two.version}</version> <version>${hadoop-two.version}</version>
<type>test-jar</type> <type>test-jar</type>
<scope>test</scope> <scope>test</scope>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>javax.servlet.jsp</groupId> <groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId> <artifactId>jsp-api</artifactId>
</exclusion> </exclusion>
<exclusion> <exclusion>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId> <artifactId>servlet-api</artifactId>
</exclusion> </exclusion>
<exclusion> <exclusion>
<groupId>stax</groupId> <groupId>stax</groupId>
<artifactId>stax-api</artifactId> <artifactId>stax-api</artifactId>
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
@ -1735,9 +1723,7 @@
<activeByDefault>false</activeByDefault> <activeByDefault>false</activeByDefault>
</activation> </activation>
<properties> <properties>
<surefire.firstPartForkMode>always</surefire.firstPartForkMode> <surefire.firstPartForkCount>1</surefire.firstPartForkCount>
<surefire.firstPartParallel>none</surefire.firstPartParallel>
<surefire.firstPartThreadCount>1</surefire.firstPartThreadCount>
</properties> </properties>
</profile> </profile>
<profile> <profile>
@ -1747,9 +1733,7 @@
<activeByDefault>false</activeByDefault> <activeByDefault>false</activeByDefault>
</activation> </activation>
<properties> <properties>
<surefire.firstPartForkMode>once</surefire.firstPartForkMode> <surefire.firstPartForkCount>1</surefire.firstPartForkCount>
<surefire.firstPartParallel>classes</surefire.firstPartParallel>
<surefire.firstPartThreadCount>1</surefire.firstPartThreadCount>
</properties> </properties>
</profile> </profile>
<profile> <profile>
@ -1759,9 +1743,7 @@
<activeByDefault>false</activeByDefault> <activeByDefault>false</activeByDefault>
</activation> </activation>
<properties> <properties>
<surefire.firstPartForkMode>once</surefire.firstPartForkMode> <surefire.firstPartForkCount>1</surefire.firstPartForkCount>
<surefire.firstPartParallel>none</surefire.firstPartParallel>
<surefire.firstPartThreadCount>1</surefire.firstPartThreadCount>
<surefire.skipFirstPart>false</surefire.skipFirstPart> <surefire.skipFirstPart>false</surefire.skipFirstPart>
<surefire.skipSecondPart>true</surefire.skipSecondPart> <surefire.skipSecondPart>true</surefire.skipSecondPart>
<surefire.firstPartGroups/> <surefire.firstPartGroups/>
@ -1774,9 +1756,7 @@
<activeByDefault>false</activeByDefault> <activeByDefault>false</activeByDefault>
</activation> </activation>
<properties> <properties>
<surefire.firstPartForkMode>once</surefire.firstPartForkMode> <surefire.firstPartForkCount>1</surefire.firstPartForkCount>
<surefire.firstPartParallel>none</surefire.firstPartParallel>
<surefire.firstPartThreadCount>1</surefire.firstPartThreadCount>
<surefire.skipFirstPart>false</surefire.skipFirstPart> <surefire.skipFirstPart>false</surefire.skipFirstPart>
<surefire.skipSecondPart>true</surefire.skipSecondPart> <surefire.skipSecondPart>true</surefire.skipSecondPart>
<surefire.firstPartGroups>org.apache.hadoop.hbase.SmallTests</surefire.firstPartGroups> <surefire.firstPartGroups>org.apache.hadoop.hbase.SmallTests</surefire.firstPartGroups>
@ -1790,7 +1770,6 @@
<activeByDefault>false</activeByDefault> <activeByDefault>false</activeByDefault>
</activation> </activation>
<properties> <properties>
<surefire.firstPartForkMode>always</surefire.firstPartForkMode>
<surefire.skipFirstPart>false</surefire.skipFirstPart> <surefire.skipFirstPart>false</surefire.skipFirstPart>
<surefire.skipSecondPart>true</surefire.skipSecondPart> <surefire.skipSecondPart>true</surefire.skipSecondPart>
<surefire.firstPartGroups>org.apache.hadoop.hbase.MediumTests</surefire.firstPartGroups> <surefire.firstPartGroups>org.apache.hadoop.hbase.MediumTests</surefire.firstPartGroups>
@ -1804,7 +1783,6 @@
<activeByDefault>false</activeByDefault> <activeByDefault>false</activeByDefault>
</activation> </activation>
<properties> <properties>
<surefire.firstPartForkMode>always</surefire.firstPartForkMode>
<surefire.skipFirstPart>false</surefire.skipFirstPart> <surefire.skipFirstPart>false</surefire.skipFirstPart>
<surefire.skipSecondPart>true</surefire.skipSecondPart> <surefire.skipSecondPart>true</surefire.skipSecondPart>
<surefire.firstPartGroups>org.apache.hadoop.hbase.LargeTests</surefire.firstPartGroups> <surefire.firstPartGroups>org.apache.hadoop.hbase.LargeTests</surefire.firstPartGroups>
@ -1818,9 +1796,7 @@
<activeByDefault>false</activeByDefault> <activeByDefault>false</activeByDefault>
</activation> </activation>
<properties> <properties>
<surefire.firstPartForkMode>once</surefire.firstPartForkMode> <surefire.firstPartForkCount>1</surefire.firstPartForkCount>
<surefire.firstPartParallel>none</surefire.firstPartParallel>
<surefire.firstPartThreadCount>1</surefire.firstPartThreadCount>
<surefire.skipFirstPart>false</surefire.skipFirstPart> <surefire.skipFirstPart>false</surefire.skipFirstPart>
<surefire.skipSecondPart>false</surefire.skipSecondPart> <surefire.skipSecondPart>false</surefire.skipSecondPart>
<surefire.firstPartGroups>org.apache.hadoop.hbase.SmallTests</surefire.firstPartGroups> <surefire.firstPartGroups>org.apache.hadoop.hbase.SmallTests</surefire.firstPartGroups>
@ -1834,10 +1810,8 @@
<activeByDefault>false</activeByDefault> <activeByDefault>false</activeByDefault>
</activation> </activation>
<properties> <properties>
<surefire.firstPartForkMode>once</surefire.firstPartForkMode> <surefire.firstPartForkCount>1</surefire.firstPartForkCount>
<surefire.firstPartParallel>none</surefire.firstPartParallel> <surefire.secondPartForkCount>5</surefire.secondPartForkCount>
<surefire.firstPartThreadCount>1</surefire.firstPartThreadCount>
<surefire.secondPartThreadCount>5</surefire.secondPartThreadCount>
<surefire.skipFirstPart>false</surefire.skipFirstPart> <surefire.skipFirstPart>false</surefire.skipFirstPart>
<surefire.skipSecondPart>false</surefire.skipSecondPart> <surefire.skipSecondPart>false</surefire.skipSecondPart>
<surefire.firstPartGroups>org.apache.hadoop.hbase.SmallTests</surefire.firstPartGroups> <surefire.firstPartGroups>org.apache.hadoop.hbase.SmallTests</surefire.firstPartGroups>
@ -1854,7 +1828,6 @@
</activation> </activation>
<properties> <properties>
<surefire.provider>surefire-junit4</surefire.provider> <surefire.provider>surefire-junit4</surefire.provider>
<surefire.firstPartForkMode>always</surefire.firstPartForkMode>
<surefire.skipFirstPart>false</surefire.skipFirstPart> <surefire.skipFirstPart>false</surefire.skipFirstPart>
<surefire.skipSecondPart>true</surefire.skipSecondPart> <surefire.skipSecondPart>true</surefire.skipSecondPart>
<surefire.firstPartGroups/> <surefire.firstPartGroups/>
@ -1955,41 +1928,51 @@
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version> <version>2.9.1</version>
<configuration> <configuration>
<maxmemory>2048m</maxmemory> <maxmemory>2048m</maxmemory>
<notimestamp>true</notimestamp> <notimestamp>true</notimestamp>
</configuration> </configuration>
<reportSets> <reportSets>
<reportSet> <reportSet>
<id>devapi</id> <!-- full internal hbase api --> <id>devapi</id>
<reports> <report>aggregate</report></reports> <!-- full internal hbase api -->
<configuration> <reports>
<destDir>devapidocs</destDir> <report>aggregate</report>
</configuration> </reports>
</reportSet> <configuration>
<destDir>devapidocs</destDir>
</configuration>
</reportSet>
<reportSet> <reportSet>
<id>userapi</id> <!-- public user hbase api; limited but has stronger compat/deprecation guarantees --> <id>userapi</id>
<reports> <report>aggregate</report></reports> <!-- public user hbase api; limited but has stronger compat/deprecation guarantees -->
<configuration> <reports>
<doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet> <report>aggregate</report>
<docletArtifact> </reports>
<groupId>org.apache.hadoop</groupId> <configuration>
<!-- doclet lives in hadoop 2's hadoop-common module --> <doclet>
<artifactId>hadoop-common</artifactId> org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet
<version>${hadoop-two.version}</version> </doclet>
</docletArtifact> <docletArtifact>
<destDir>apidocs</destDir> <groupId>org.apache.hadoop</groupId>
<name>User API</name> <!-- doclet lives in hadoop 2's hadoop-common module -->
<description>The HBase Application Programmer's API</description> <artifactId>hadoop-common</artifactId>
<!-- exclude all the packages that are empty after the public annotation only filter --> <version>${hadoop-two.version}</version>
<excludePackageNames>org.apache.hadoop.hbase.backup*:org.apache.hadoop.hbase.catalog:org.apache.hadoop.hbase.client.coprocessor:org.apache.hadoop.hbase.client.metrics:org.apache.hadoop.hbase.codec*:org.apache.hadoop.hbase.constraint:org.apache.hadoop.hbase.coprocessor.*:org.apache.hadoop.hbase.executor:org.apache.hadoop.hbase.fs:org.apache.hadoop.hbase.generated.*:org.apache.hadoop.hbase.io.hfile.*:org.apache.hadoop.hbase.mapreduce.hadoopbackport:org.apache.hadoop.hbase.mapreduce.replication:org.apache.hadoop.hbase.master.*:org.apache.hadoop.hbase.metrics*:org.apache.hadoop.hbase.migration:org.apache.hadoop.hbase.monitoring:org.apache.hadoop.hbase.p*:org.apache.hadoop.hbase.regionserver.compactions:org.apache.hadoop.hbase.regionserver.handler:org.apache.hadoop.hbase.regionserver.snapshot:org.apache.hadoop.hbase.replication.*:org.apache.hadoop.hbase.rest.filter:org.apache.hadoop.hbase.rest.model:org.apache.hadoop.hbase.rest.p*:org.apache.hadoop.hbase.security.*:org.apache.hadoop.hbase.thrift*:org.apache.hadoop.hbase.tmpl.*:org.apache.hadoop.hbase.tool:org.apache.hadoop.hbase.trace:org.apache.hadoop.hbase.util.byterange*:org.apache.hadoop.hbase.util.test:org.apache.hadoop.hbase.util.vint:org.apache.hadoop.hbase.zookeeper.lock:org.apache.hadoop.metrics2*</excludePackageNames> </docletArtifact>
</configuration> <destDir>apidocs</destDir>
</reportSet> <name>User API</name>
</reportSets> <description>The HBase Application Programmer's API</description>
<!-- exclude all the packages that are empty after the public annotation only filter -->
<excludePackageNames>
org.apache.hadoop.hbase.backup*:org.apache.hadoop.hbase.catalog:org.apache.hadoop.hbase.client.coprocessor:org.apache.hadoop.hbase.client.metrics:org.apache.hadoop.hbase.codec*:org.apache.hadoop.hbase.constraint:org.apache.hadoop.hbase.coprocessor.*:org.apache.hadoop.hbase.executor:org.apache.hadoop.hbase.fs:org.apache.hadoop.hbase.generated.*:org.apache.hadoop.hbase.io.hfile.*:org.apache.hadoop.hbase.mapreduce.hadoopbackport:org.apache.hadoop.hbase.mapreduce.replication:org.apache.hadoop.hbase.master.*:org.apache.hadoop.hbase.metrics*:org.apache.hadoop.hbase.migration:org.apache.hadoop.hbase.monitoring:org.apache.hadoop.hbase.p*:org.apache.hadoop.hbase.regionserver.compactions:org.apache.hadoop.hbase.regionserver.handler:org.apache.hadoop.hbase.regionserver.snapshot:org.apache.hadoop.hbase.replication.*:org.apache.hadoop.hbase.rest.filter:org.apache.hadoop.hbase.rest.model:org.apache.hadoop.hbase.rest.p*:org.apache.hadoop.hbase.security.*:org.apache.hadoop.hbase.thrift*:org.apache.hadoop.hbase.tmpl.*:org.apache.hadoop.hbase.tool:org.apache.hadoop.hbase.trace:org.apache.hadoop.hbase.util.byterange*:org.apache.hadoop.hbase.util.test:org.apache.hadoop.hbase.util.vint:org.apache.hadoop.hbase.zookeeper.lock:org.apache.hadoop.metrics2*
</excludePackageNames>
</configuration>
</reportSet>
</reportSets>
</plugin> </plugin>
</plugins> </plugins>