summeriiii commented on issue #23239:
URL: https://github.com/apache/pulsar/issues/23239#issuecomment-2343161571
@michalcukierman
I opend the debug log, and found the message will be ignored, so the
consumer won't receive the message.
[pulsar-client-io-36-5:ConsumerImpl] - [my-sub] [d0201] Ignoring message
from before the startMessageId: 3:999:-1:-1
ConsumerImpl#messageReceived
``` java // If the topic is non-persistent, we should not ignore any
messages.
if (this.topicName.isPersistent() && isSameEntry(msgId) &&
isPriorEntryIndex(messageId.getEntryId())) {
// We need to discard entries that were prior to
startMessageId
if (log.isDebugEnabled()) {
log.debug("[{}] [{}] Ignoring message from before the
startMessageId: {}", subscription,
consumerName, startMessageId);
}
uncompressedPayload.release();
return;
}
```
But the MsgBacklog is always not correct. For NonDurable subscription, we
don't save the cursor info, and I still don't know how to solve this problem.
--
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]