michalcukierman commented on issue #23239:
URL: https://github.com/apache/pulsar/issues/23239#issuecomment-2328391960
I've added a PR with the failing test. The summary is at the bottom:
```java
// It's OK to have a backlog, to re-consume a batch message
assertEquals(sub.get().getMsgBacklog(), 1);
// However the client should be able to receive the message
Message<byte[]> msg = consumer.receive(2, TimeUnit.SECONDS);
consumer.acknowledge(msg);
// And the backlog should become empty
Awaitility.await().until(
() ->
admin.topics().getStats(topic).getSubscriptions().get(subName)
.getMsgBacklog() == 0);
```
--
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]