From d865df90ea6934b97809bdf0db38d44997bdbaaa Mon Sep 17 00:00:00 2001 From: Liang Chun Date: Mon, 21 Oct 2024 05:01:13 -0700 Subject: [PATCH] [#5152] fix(oceanbase-catalog): OB catalog UTs failed on Mac (#5178) ### What changes were proposed in this pull request? The max user processes in the OB catalog unit tests should be larger than 120000 ### Why are the changes needed? Fix: #5152 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? ./gradlew :catalogs:catalog-jdbc-oceanbase:test -PskipDockerTests=false --- .../gravitino/integration/test/container/BaseContainer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integration-test-common/src/test/java/org/apache/gravitino/integration/test/container/BaseContainer.java b/integration-test-common/src/test/java/org/apache/gravitino/integration/test/container/BaseContainer.java index 192ba2c0cb5..517d6e877ee 100644 --- a/integration-test-common/src/test/java/org/apache/gravitino/integration/test/container/BaseContainer.java +++ b/integration-test-common/src/test/java/org/apache/gravitino/integration/test/container/BaseContainer.java @@ -24,6 +24,7 @@ import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.api.command.InspectContainerResponse; import com.github.dockerjava.api.model.ContainerNetwork; +import com.github.dockerjava.api.model.Ulimit; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -79,8 +80,8 @@ protected BaseContainer( cmd -> cmd.getHostConfig() .withSysctls( - Collections.singletonMap( - "net.ipv4.ip_local_port_range", "20000 40000"))); + Collections.singletonMap("net.ipv4.ip_local_port_range", "20000 40000")) + .withUlimits(new Ulimit[] {new Ulimit("nproc", 120000L, 120000L)})); this.ports = requireNonNull(ports, "ports is null"); this.hostName = requireNonNull(hostName, "hostName is null"); this.extraHosts = extraHosts;