Skip to content

Flaky-tests: misc tests failing with java.lang.NoClassDefFoundError: Could not initialize class org.apache.pulsar.common.protocol.Commands #17152

Open

Description

@nicoloboschi

Search before asking

  • I searched in the issues and found nothing similar.

Example failure

https://github.com/apache/pulsar/runs/7884887469?check_suite_focus=true

Exception stacktrace

java.lang.NoClassDefFoundError: Could not initialize class org.apache.pulsar.common.protocol.Commands
  	at org.apache.pulsar.client.impl.ClientCnx.<init>(ClientCnx.java:220)
  	at org.apache.pulsar.client.impl.ClientCnxRequestTimeoutQueueTest.setupClientCnx(ClientCnxRequestTimeoutQueueTest.java:63)

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. nicoloboschi commented on Aug 18, 2022

    @nicoloboschi
    ContributorAuthor

    This is probably caused by JDK ZGC issue openjdk/jdk17u-dev#605
    IIUC this will released in the next hotfix version of JDK 17

  2. codelipenghui commented on Aug 18, 2022

    @codelipenghui
    Contributor

    @nicoloboschi I have changed here, the test get passed. It looks like related to Mockito and reuseForks. I'm not sure what exactly the problem is but disabled the reuse fork can help.

    You can try to rebase to the master branch.

  3. mattisonchao commented on Aug 22, 2022

    @mattisonchao
    Member

    I think the reuseForks=false can fix this problem.

    Link: https://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html

    So, I closed the question and opened it when it reappeared.

  4. nicoloboschi commented on Aug 22, 2022

    @nicoloboschi
    ContributorAuthor

    I'm not sure we should close this issue. reuseForks=false may helps but it means we don't know the real source of the problem.
    @codelipenghui have you verified how much time the suite get now? is it relevant for the CI pipeline?

  5. codelipenghui commented on Aug 22, 2022

    @codelipenghui
    Contributor

    @nicoloboschi Yes, we can keep it open until we find the root cause.

  6. github-actions commented on Sep 23, 2022

    @github-actions

    The issue had no activity for 30 days, mark with Stale label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions