shibd opened a new pull request #14519:
URL: https://github.com/apache/pulsar/pull/14519
### Motivation
#13625
Now the problem will still reproduce. If `invocationCount > 100` can be set,
it can be simulated locally.
``` java
@Test(invocationCount = 1000)
public void testCrashBrokerWithoutCursorLedgerLeak() throws Exception {
```
Since deleting cursor-ledger is asynchronous, wrapping assert solves the
problem.
```
Awaitility.await().untilAsserted(() -> {
Assert.assertNull(zk.exists(ledgerPath, false));
});
```
### Modifications
- Wrap assertions with `Awaitility` and wait indefinitely for completion
### Documentation
- [x] `no-need-doc`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]