You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 1, 2024. It is now read-only.
Describe the bug
There is a subscription keep logging Mark deleting an already mark-deleted position in our production cluster.
[persistent://op/growth/sms_produce_b_api_0-partition-2][growth] Failed to delete message at 71317494:-1: org.apache.bookkeeper.mledger.ManagedLedgerException: java.lang.IllegalArgumentException: Mark deleting an already mark-deleted position
Topic persistent://op/growth/sms_produce_b_api_0 has 3 partitions, but only partition-2 keep logging this issue.
The internal-stats shows cursor's markDeletePosition is after the firstRange of individuallyDeletedMessages:
Original Issue: apache#13788
Describe the bug
There is a subscription keep logging
Mark deleting an already mark-deleted position
in our production cluster.Topic
persistent://op/growth/sms_produce_b_api_0
has 3 partitions, but onlypartition-2
keep logging this issue.The

internal-stats
shows cursor'smarkDeletePosition
is after the firstRange ofindividuallyDeletedMessages
:So every time handle message ack it will select the upper endpoint of the firstRange of
individuallyDeletedMessages
which is ahead ofmarkDeletePosition
, so aIllegalArgumentException
will be throw atorg.apache.bookkeeper.mledger.impl.ManagedCursorImpl#setAcknowledgedPosition
.https://github.com/apache/pulsar/blob/3acdbfe4eac79040be140b423342c28a07dc0327/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java#L2001-L2021
https://github.com/apache/pulsar/blob/3acdbfe4eac79040be140b423342c28a07dc0327/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java#L1580-L1583
Arthas watch output
I don't know how to reproduce this situation yet, please let me know if need more details.
Additional context
2.8.1
CentOS Linux release 7.9.2009 (Core)
3.10.0-1160.45.1.el7.x86_64
The text was updated successfully, but these errors were encountered: