You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by gu...@apache.org on 2025/02/12 07:04:27 UTC
(flink-connector-elasticsearch) branch v3.0 updated: [hotfix] Make tests passing for jdk 17+
This is an automated email from the ASF dual-hosted git repository.
guoweijie pushed a commit to branch v3.0
in repository https://gitbox.apache.org/repos/asf/flink-connector-elasticsearch.git
The following commit(s) were added to refs/heads/v3.0 by this push:
new 3741a32 [hotfix] Make tests passing for jdk 17+
3741a32 is described below
commit 3741a32788c749c081aeb59f57a2ce5076ee5e51
Author: Weijie Guo <re...@163.com>
AuthorDate: Wed Feb 12 14:33:46 2025 +0800
[hotfix] Make tests passing for jdk 17+
---
.../flink-connector-elasticsearch6-e2e-tests/pom.xml | 2 ++
.../flink-connector-elasticsearch7-e2e-tests/pom.xml | 2 ++
flink-connector-elasticsearch-e2e-tests/pom.xml | 6 ++++++
flink-connector-elasticsearch6/pom.xml | 2 ++
flink-connector-elasticsearch7/pom.xml | 2 ++
pom.xml | 3 +++
6 files changed, 17 insertions(+)
diff --git a/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch6-e2e-tests/pom.xml b/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch6-e2e-tests/pom.xml
index 6b3a696..fa10158 100644
--- a/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch6-e2e-tests/pom.xml
+++ b/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch6-e2e-tests/pom.xml
@@ -35,6 +35,8 @@ under the License.
<properties>
<elasticsearch.version>6.8.20</elasticsearch.version>
+ <surefire.module.config><!-- required by
+ Elasticsearch6SinkE2ECase --> --add-opens=java.base/java.util=ALL-UNNAMED </surefire.module.config>
</properties>
<dependencies>
diff --git a/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch7-e2e-tests/pom.xml b/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch7-e2e-tests/pom.xml
index bd19be8..a67b02a 100644
--- a/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch7-e2e-tests/pom.xml
+++ b/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch7-e2e-tests/pom.xml
@@ -35,6 +35,8 @@ under the License.
<properties>
<elasticsearch.version>7.10.2</elasticsearch.version>
+ <surefire.module.config><!-- required by
+ Elasticsearch7SinkE2ECase --> --add-opens=java.base/java.util=ALL-UNNAMED </surefire.module.config>
</properties>
<dependencies>
diff --git a/flink-connector-elasticsearch-e2e-tests/pom.xml b/flink-connector-elasticsearch-e2e-tests/pom.xml
index 87756e1..124821c 100644
--- a/flink-connector-elasticsearch-e2e-tests/pom.xml
+++ b/flink-connector-elasticsearch-e2e-tests/pom.xml
@@ -39,6 +39,11 @@ under the License.
<module>flink-connector-elasticsearch7-e2e-tests</module>
</modules>
+ <properties>
+ <surefire.module.config><!-- required by
+ Elasticsearch6SinkE2ECase --> --add-opens=java.base/java.util=ALL-UNNAMED </surefire.module.config>
+ </properties>
+
<profiles>
<profile>
<id>run-end-to-end-tests</id>
@@ -63,6 +68,7 @@ under the License.
<systemPropertyVariables>
<moduleDir>${project.basedir}</moduleDir>
</systemPropertyVariables>
+ <argLine>${flink.surefire.baseArgLine} -Xmx${flink.XmxUnitTest}</argLine>
</configuration>
</execution>
</executions>
diff --git a/flink-connector-elasticsearch6/pom.xml b/flink-connector-elasticsearch6/pom.xml
index b5335ca..6950456 100644
--- a/flink-connector-elasticsearch6/pom.xml
+++ b/flink-connector-elasticsearch6/pom.xml
@@ -37,6 +37,8 @@ under the License.
<!-- Allow users to pass custom connector versions -->
<properties>
<elasticsearch.version>6.8.20</elasticsearch.version>
+ <surefire.module.config><!-- required by
+ Elasticsearch6DynamicSinkITCase --> --add-opens=java.base/java.util=ALL-UNNAMED </surefire.module.config>
</properties>
<dependencies>
diff --git a/flink-connector-elasticsearch7/pom.xml b/flink-connector-elasticsearch7/pom.xml
index 3511bf3..50c93a4 100644
--- a/flink-connector-elasticsearch7/pom.xml
+++ b/flink-connector-elasticsearch7/pom.xml
@@ -37,6 +37,8 @@ under the License.
<!-- Allow users to pass custom connector versions -->
<properties>
<elasticsearch.version>7.10.2</elasticsearch.version>
+ <surefire.module.config><!-- required by
+ Elasticsearch7DynamicSinkITCase --> --add-opens=java.base/java.util=ALL-UNNAMED </surefire.module.config>
</properties>
<dependencies>
diff --git a/pom.xml b/pom.xml
index 9d2ec88..fffae46 100644
--- a/pom.xml
+++ b/pom.xml
@@ -68,6 +68,9 @@ under the License.
<test.randomization.seed/>
<flink.parent.artifactId>flink-connector-elasticsearch-parent</flink.parent.artifactId>
+ <!-- These 2 properties should be removed together with upgrade of flink-connector-parent to 1.1.x -->
+ <flink.surefire.baseArgLine>-XX:+UseG1GC -Xms256m -XX:+IgnoreUnrecognizedVMOptions ${surefire.module.config}</flink.surefire.baseArgLine>
+ <surefire.module.config/>
</properties>
<dependencies>