You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2022/09/13 08:50:53 UTC

[flink-connector-elasticsearch] 07/13: [FLINK-27024][build] Cleanup surefire configuration

This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-connector-elasticsearch.git

commit aa98d57044622aebf58300a2d2a51fe3637ffe4e
Author: Chesnay Schepler <ch...@apache.org>
AuthorDate: Mon Sep 12 16:50:48 2022 +0200

    [FLINK-27024][build] Cleanup surefire configuration
---
 pom.xml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 9cda7e3..4a4a19c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -913,8 +913,13 @@ under the License.
 					<trimStackTrace>false</trimStackTrace>
 					<systemPropertyVariables>
 						<forkNumber>0${surefire.forkNumber}</forkNumber>
+						<!-- $$ ensures that surefire resolves this to the current forkNumber,
+						 	instead of maven during initialization -->
+						<mvn.forkNumber>$${surefire.forkNumber}</mvn.forkNumber>
 						<checkpointing.randomization>true</checkpointing.randomization>
 						<buffer-debloat.randomization>true</buffer-debloat.randomization>
+						<user.country>US</user.country>
+						<user.language>en</user.language>
 						<!-- force the use of the Changelog State Backend in tests on mini-cluster
 							on: enable CheckpointingOptions.ENABLE_STATE_CHANGE_LOG on cluster level
 							random: enable it randomly, unless explicitly set
@@ -926,7 +931,7 @@ under the License.
 						<test.randomization.seed>${test.randomization.seed}</test.randomization.seed>
 						<junit.jupiter.extensions.autodetection.enabled>true</junit.jupiter.extensions.autodetection.enabled>
 					</systemPropertyVariables>
-					<argLine>-Xms256m -Xmx2048m -Dmvn.forkNumber=${surefire.forkNumber} -XX:+UseG1GC -Duser.country=US -Duser.language=en</argLine>
+					<argLine>-Xms256m -Xmx2048m -XX:+UseG1GC</argLine>
 				</configuration>
 				<executions>
 					<!--execute all the unit tests-->