codelipenghui commented on code in PR #16389:
URL: https://github.com/apache/pulsar/pull/16389#discussion_r920199611
##########
managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/ManagedCursorTest.java:
##########
@@ -3533,10 +3542,11 @@ public void testFlushCursorAfterError() throws
Exception {
positions.add(ledger1.addEntry(new byte[1024]));
}
+ c1.markDelete(positions.get(0));
+ Thread.sleep(3000);
Review Comment:
This one is interesting, adding sleep here will work. Without the sleep,
looks like the
```
bkc.failNow(BKException.Code.NotEnoughBookiesException);
metadataStore.setAlwaysFail(new
MetadataStoreException.BadVersionException(""));
```
will not take effect. The mark delete operation will not get exception.
--
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]