mchades opened a new issue, #5152:
URL: https://github.com/apache/gravitino/issues/5152
### Version
main branch
### Describe what's wrong
OB catalog UTs failed on Mac
### Error message and/or stacktrace
The OB Docker log can be found:
> [ERROR] OBD-1007: (192.168.215.2) The value of the ulimit parameter "max
user processes" must not be less than 120000 (Current value: 56081), Please
execute `echo -e "* soft nproc 120000\n* hard nproc 120000" >>
/etc/security/limits.d/nproc.conf` as root in 192.168.215.2. if it dosen't
work, please check whether UsePAM is yes in /etc/ssh/sshd_config.
### How to reproduce
pull the main branch and run `./gradlew
:catalogs:catalog-jdbc-oceanbase:test -PskipDockerTests=false` on MacOS
### Additional context
modify code below of
`org.apache.gravitino.integration.test.container.BaseContainer` can fix.
```java
this.container =
new GenericContainer<>(requireNonNull(image, "image is null"))
.withCreateContainerCmdModifier(
cmd ->
cmd.getHostConfig()
.withSysctls(
Collections.singletonMap("net.ipv4.ip_local_port_range", "20000 40000"))
.withUlimits(new Ulimit[] {new Ulimit("nproc",
120000L, 120000L)}));
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]