Skip to content

Conversation

@codelipenghui
Copy link
Contributor

@codelipenghui codelipenghui commented Jun 9, 2022

Fixes: #16000

After cherry-picked #15627, the test org.apache.bookkeeper.mledger.impl.ManagedLedgerTest
will fail for branch-2.10. Details to see #15627 (comment)

@github-actions
Copy link

github-actions bot commented Jun 9, 2022

@codelipenghui:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@codelipenghui codelipenghui added the doc-not-needed Your PR changes do not impact docs label Jun 9, 2022
@github-actions
Copy link

github-actions bot commented Jun 9, 2022

@codelipenghui:Thanks for providing doc info!

@codelipenghui
Copy link
Contributor Author

/pulsarbot run-failure-checks

Copy link
Contributor

@congbobo184 congbobo184 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't merge, wait the broker group2 pass, we can merge. now is testing, some tests can't pass

@codelipenghui
Copy link
Contributor Author

codelipenghui commented Jun 10, 2022

I have created an issue to track the failed test #16000

@codelipenghui codelipenghui force-pushed the penghui/fix-2.10-test branch from ba020fd to cb46c14 Compare June 10, 2022 04:16
Awaitility.await().untilAsserted(() -> {
assertEquals(managedLedger.getLedgersInfo().size(), 2);
assertEquals(managedLedger.getState(), ManagedLedgerImpl.State.ClosedLedger);
assertEquals(managedLedger.getLedgersInfo().size(), 3);
Copy link
Contributor

@gaoran10 gaoran10 Jun 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that this changed the intention of the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please see the description of this PR.

@codelipenghui codelipenghui linked an issue Jun 10, 2022 that may be closed by this pull request
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codelipenghui can you please add in the description the reason why we need to set -DtestReuseFork=false ?

@codelipenghui
Copy link
Contributor Author

@codelipenghui can you please add in the description the reason why we need to set -DtestReuseFork=false ?

Not 100% sure what's going on for now, but looks like It's related to the concurrency issue in the class initialization. Just found some related information.

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

testcontainers/testcontainers-java#2939 (comment)

@codelipenghui codelipenghui merged commit 0b7bacc into apache:branch-2.10 Jun 10, 2022
@codelipenghui codelipenghui deleted the penghui/fix-2.10-test branch June 10, 2022 13:53
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jun 13, 2022
Fixes: apache#16000

After cherry-picked apache#15627, the test `org.apache.bookkeeper.mledger.impl.ManagedLedgerTest`
will fail for branch-2.10. Details to see apache#15627 (comment)

Not 100% sure what's going on for now, but looks like It's related to the concurrency issue in the class initialization. Just found some related information.

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

testcontainers/testcontainers-java#2939 (comment)
(cherry picked from commit 0b7bacc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[test] NPE of StringSchema for branch-2.10

8 participants