Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug report] OB catalog UTs failed on Mac #5152

Open
mchades opened this issue Oct 16, 2024 · 0 comments · May be fixed by #5178
Open

[Bug report] OB catalog UTs failed on Mac #5152

mchades opened this issue Oct 16, 2024 · 0 comments · May be fixed by #5178
Labels
bug Something isn't working

Comments

@mchades
Copy link
Contributor

mchades commented Oct 16, 2024

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.

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)}));
@mchades mchades added the bug Something isn't working label Oct 16, 2024
@featherchen featherchen linked a pull request Oct 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@mchades and others