Skip to content

Commit f6d20da

Browse files
committed
HADOOP-16808. Use forkCount and reuseForks parameters instead of forkMode in the config of maven surefire plugin. Contributed by Xieming Li.
1 parent 1defe3a commit f6d20da

File tree

2 files changed

+4
-2
lines changed
  • hadoop-hdfs-project/hadoop-hdfs-httpfs
  • hadoop-tools/hadoop-distcp

2 files changed

+4
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@
368368
<groupId>org.apache.maven.plugins</groupId>
369369
<artifactId>maven-surefire-plugin</artifactId>
370370
<configuration>
371-
<forkMode>once</forkMode>
371+
<forkCount>1</forkCount>
372+
<reuseForks>true</reuseForks>
372373
<forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
373374
<systemPropertyVariables>
374375
<java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>

hadoop-tools/hadoop-distcp/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@
128128
<groupId>org.apache.maven.plugins</groupId>
129129
<artifactId>maven-surefire-plugin</artifactId>
130130
<configuration>
131-
<forkMode>always</forkMode>
131+
<forkCount>1</forkCount>
132+
<reuseForks>false</reuseForks>
132133
<forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
133134
<argLine>-Xmx1024m</argLine>
134135
<includes>

0 commit comments

Comments
 (0)