Skip to content

Commit d5e33d6

Browse files
fix(bigquery-jdbc): add preferIPv4Stack to argLine for Kokoro reliability (#13923)
1 parent 4ddf250 commit d5e33d6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

java-bigquery-jdbc/pom.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<github.global.server>github</github.global.server>
3333
<site.installationModule>google-cloud-bigquery-jdbc</site.installationModule>
3434
<skipShade>false</skipShade>
35+
<preferIpv4.test.argLine>-Djava.net.preferIPv4Stack=true</preferIpv4.test.argLine>
3536
</properties>
3637

3738
<build>
@@ -47,6 +48,7 @@
4748
<artifactId>maven-surefire-plugin</artifactId>
4849
<version>3.5.2</version>
4950
<configuration>
51+
<argLine>@{argLine} ${preferIpv4.test.argLine}</argLine>
5052
<skip>${skipSurefire}</skip>
5153
<systemPropertyVariables>
5254
<JDBC_TESTS>true</JDBC_TESTS>
@@ -57,6 +59,7 @@
5759
<groupId>org.apache.maven.plugins</groupId>
5860
<artifactId>maven-failsafe-plugin</artifactId>
5961
<configuration>
62+
<argLine>@{argLine} ${preferIpv4.test.argLine}</argLine>
6063
<systemPropertyVariables>
6164
<JDBC_TESTS>true</JDBC_TESTS>
6265
</systemPropertyVariables>
@@ -477,14 +480,14 @@
477480
<groupId>org.apache.maven.plugins</groupId>
478481
<artifactId>maven-surefire-plugin</artifactId>
479482
<configuration>
480-
<argLine>--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED</argLine>
483+
<argLine>@{argLine} ${preferIpv4.test.argLine} --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED</argLine>
481484
</configuration>
482485
</plugin>
483486
<plugin>
484487
<groupId>org.apache.maven.plugins</groupId>
485488
<artifactId>maven-failsafe-plugin</artifactId>
486489
<configuration>
487-
<argLine>--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED</argLine>
490+
<argLine>@{argLine} ${preferIpv4.test.argLine} --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED</argLine>
488491
</configuration>
489492
</plugin>
490493
</plugins>

0 commit comments

Comments
 (0)