You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@paimon.apache.org by cz...@apache.org on 2023/04/17 03:19:19 UTC
[incubator-paimon] branch master updated: [PAIMON-874] Set network environment with network name instead of netword id (#875)
This is an automated email from the ASF dual-hosted git repository.
czweng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git
The following commit(s) were added to refs/heads/master by this push:
new 171be02c3 [PAIMON-874] Set network environment with network name instead of netword id (#875)
171be02c3 is described below
commit 171be02c3d61bca662e484eeddc4e018185d4dc7
Author: GuojunLi <li...@bytedance.com>
AuthorDate: Mon Apr 17 11:19:14 2023 +0800
[PAIMON-874] Set network environment with network name instead of netword id (#875)
---
.../src/test/java/org/apache/paimon/tests/E2eTestBase.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/paimon-e2e-tests/src/test/java/org/apache/paimon/tests/E2eTestBase.java b/paimon-e2e-tests/src/test/java/org/apache/paimon/tests/E2eTestBase.java
index a3c66ef6c..9bf1768f6 100644
--- a/paimon-e2e-tests/src/test/java/org/apache/paimon/tests/E2eTestBase.java
+++ b/paimon-e2e-tests/src/test/java/org/apache/paimon/tests/E2eTestBase.java
@@ -91,6 +91,7 @@ public abstract class E2eTestBase {
services.add("taskmanager");
network = Network.newNetwork();
+ LOG.info("Network {} created", network.getId());
environment =
new DockerComposeContainer<>(
new File(
@@ -98,7 +99,7 @@ public abstract class E2eTestBase {
.getClassLoader()
.getResource("docker-compose.yaml")
.toURI()))
- .withEnv("NETWORK_ID", network.getId())
+ .withEnv("NETWORK_ID", ((Network.NetworkImpl) network).getName())
.withLogConsumer("jobmanager_1", new LogConsumer(LOG))
.withLogConsumer("taskmanager_1", new LogConsumer(LOG))
.withLocalCompose(true);