Skip to content

Fix failed tests for branch-2.10 - #15995

Merged
codelipenghui merged 11 commits into
apache:branch-2.10from
codelipenghui:penghui/fix-2.10-test
Jun 10, 2022
Merged

Fix failed tests for branch-2.10#15995
codelipenghui merged 11 commits into
apache:branch-2.10from
codelipenghui:penghui/fix-2.10-test

Conversation

@codelipenghui

@codelipenghui codelipenghui commented Jun 9, 2022

Copy link
Copy Markdown
Contributor

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

github-actions Bot commented Jun 9, 2022

Copy link
Copy Markdown

@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

github-actions Bot commented Jun 9, 2022

Copy link
Copy Markdown

@codelipenghui:Thanks for providing doc info!

@codelipenghui

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@congbobo184 congbobo184 left a comment

Copy link
Copy Markdown
Contributor

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

codelipenghui commented Jun 10, 2022

Copy link
Copy Markdown
Contributor Author

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);

@gaoran10 gaoran10 Jun 10, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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