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] org.opensearch.monitor.os.OsProbeTests > testLogWarnCpuMessageOnlyOnes FAILED #2592

Closed
owaiskazi19 opened this issue Mar 24, 2022 · 1 comment · Fixed by #3448
Closed
Assignees
Labels
bug Something isn't working distributed framework

Comments

@owaiskazi19
Copy link
Member

Describe the bug
Coming from #2061. The test is failing in docker for ubuntu.

REPRODUCE WITH: ./gradlew ':server:test' --tests "org.opensearch.monitor.os.OsProbeTests.testLogWarnCpuMessageOnlyOnes" -Dtests.seed=BDC5BBA6F734E6C6 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=ar-SD -Dtests.timezone=Europe/Ulyanovsk -Druntime.java=17

org.opensearch.monitor.os.OsProbeTests > testLogWarnCpuMessageOnlyOnes FAILED
    Wanted but not invoked:
    logger.warn(<any string>);
    -> at org.opensearch.monitor.os.OsProbeTests.testLogWarnCpuMessageOnlyOnes(OsProbeTests.java:302)

    However, there was exactly 1 interaction with this mock:
    logger.debug(
        "error reading control group stats",
        java.nio.file.NoSuchFileException: /sys/fs/cgroup/cpuacct/docker/7550e3db5fa6ac2f81f2705282960c903563d569862219c3240ae1c31de0d648/cpuacct.usage
    );
    -> at org.opensearch.monitor.os.OsProbe.getCgroup(OsProbe.java:588)
        at __randomizedtesting.SeedInfo.seed([BDC5BBA6F734E6C6:7553200E882ADEC8]:0)
        at app//org.opensearch.monitor.os.OsProbeTests.testLogWarnCpuMessageOnlyOnes(OsProbeTests.java:302)

File not found: /sys/fs/cgroup/cpuacct/docker/7550e3db5fa6ac2f81f2705282960c903563d569862219c3240ae1c31de0d648/cpuacct.usage

To Reproduce
Steps to reproduce the behavior:

  1. Pull opensearchstaging/ci-runner:ci-runner-ubuntu1804-build-v1
  2. Run ./gradlew check

Expected behavior
./gradlew check should pass.

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: Ubuntu (Docker image)
  • Version: 18.04
@reta
Copy link
Collaborator

reta commented May 24, 2022

@owaiskazi19 I will take it, too annoying to see it failing :-\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working distributed framework
Projects
None yet
3 participants