apache / apache/pulsar

Flaky-test: PendingAckPersistentTest.testPendingAckLowWaterMarkRemoveFirstTxn

Open
#15,676 3 comments 0 reactions 0 assignees View on GitHub
area/test Stale type/flaky-tests
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.