-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][flaky-test]ManagedCursorMetricsTest.testManagedCursorMetrics #16878
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5c9efa1 to
09feb44
Compare
Contributor
Author
|
/pulsarbot rerun-failure-checks |
Contributor
Author
|
@lhotari Could you take a look ? |
Technoboy-
approved these changes
Aug 3, 2022
codelipenghui
approved these changes
Aug 3, 2022
Contributor
|
@poorbarcode Can you help open a new PR to merge this to branch-2.10? |
4 tasks
Contributor
Author
congbobo184
added a commit
that referenced
this pull request
Dec 7, 2022
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jan 10, 2023
…pache#16878) (cherry picked from commit a8231a4) (cherry picked from commit 3a78347)
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jan 11, 2023
…pache#16878) (cherry picked from commit a8231a4) (cherry picked from commit 3a78347)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cherry-picked/branch-2.9
Archived: 2.9 is end of life
cherry-picked/branch-2.10
doc-not-needed
Your PR changes do not impact docs
release/2.9.4
release/2.10.3
type/flaky-tests
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #9919
Master Issue: #9919
Motivation
This problem was marked as resolved, but it still exists.
recent failure: https://github.com/apache/pulsar/runs/7564370916?check_suite_focus=true#step:10:950
and this one: https://github.com/apache/pulsar/pull/16841/checks?check_run_id=7566225112
Why is this test flaky?
ledgerHandle createdwill occur aftercursor.persistentToLedger.pulsar/pulsar-broker/src/test/java/org/apache/pulsar/broker/stats/ManagedCursorMetricsTest.java
Lines 98 to 100 in 2d6b534
cursor.persistentToLedgerhas been completed, only that the client has received a response.pulsar/pulsar-broker/src/test/java/org/apache/pulsar/broker/stats/ManagedCursorMetricsTest.java
Line 108 in 2d6b534
Modifications
These following changes in this PR (High light):
ManagedCursorMetricsTest.testManagedCursorMetrics.brk_ml_cursor_persistZookeeperErrorsis left incomplete now, I write the reason in the code comment.@BeforeClassinstead of@BeforeMethod(alwaysRun=true)Documentation
doc-required(Your PR needs to update docs and you will update later)
doc-not-needed(Please explain why)
doc(Your PR contains doc changes)
doc-complete(Docs have been already added)