Flaky-test: PendingAckPersistentTest.testPendingAckLowWaterMarkRemoveFirstTxn
- Dominant language
- Java
- Stars
- 15.3k
- Forks
- 3.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 160
Description
PendingAckPersistentTest.testPendingAckLowWaterMarkRemoveFirstTxn is flaky. It fails sporadically.
[example failure](https://github.com/apache/pulsar/pull/15638/checks?check_run_id=6506945433)
```
java.lang.AssertionError: expected [false] but found [true]
at org.testng.Assert.fail(Assert.java:99)
at org.testng.Assert.failNotEquals(Assert.java:1037)
at org.testng.Assert.assertFalse(Assert.java:67)
at org.testng.Assert.assertFalse(Assert.java:77)
at org.apache.pulsar.broker.transaction.pendingack.PendingAckPersistentTest.testPendingAckLowWaterMarkRemoveFirstTxn(PendingAckPersistentTest.java:567)
```
Contributor guide
Research direction
Start with PendingAckPersistentTest.testPendingAckLowWaterMarkRemoveFirstTxn around line 567 and review the linked failure for the sporadic assertion. Run the focused test repeatedly to reproduce the failure, then identify why the low-water-mark removal assertion is nondeterministic. Done means the test is deterministic and passes consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100