-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broker keep logging Mark deleting an already mark-deleted position #13788
Comments
@Shawyeok It looks like the application holds some old messages and tries to ack them, or could you please help check does the ledger ID |
@codelipenghui It belongs to $ get_ledger_b 71317494
{
"71317494" : {
"ledgerId" : 71317494,
"metadataFormatVersion" : 3,
"ensembleSize" : 2,
"writeQuorumSize" : 2,
"ackQuorumSize" : 2,
"state" : "CLOSED",
"length" : 4007390,
"lastEntryId" : 2733,
"ctime" : 1637648110933,
"digestType" : "CRC32C",
"password" : "",
"customMetadata" : {
"component" : "bWFuYWdlZC1sZWRnZXI=",
"pulsar/managed-ledger" : "b3AvZ3Jvd3RoL3BlcnNpc3RlbnQvc21zX3Byb2R1Y2VfYl9hcGlfMC1wYXJ0aXRpb24tMQ==",
"application" : "cHVsc2Fy"
},
"allEnsembles" : {
"0" : [ {
"id" : "aaa:3181"
}, {
"id" : "bbb:3181"
} ]
},
"ctoken" : 0,
"closed" : true
}
}
$ echo "b3AvZ3Jvd3RoL3BlcnNpc3RlbnQvc21zX3Byb2R1Y2VfYl9hcGlfMC1wYXJ0aXRpb24tMQ==" | base64 -d
op/growth/persistent/sms_produce_b_api_0-partition-1 |
@Shawyeok - have you tested running with a 2.8.2 broker for this cluster? It'd be helpful to know if you're observing the same behavior for that version, too. |
I'm seeing this error while doing OMB / Offloading tests of Pulsar 2.8.3 rc3.
The mark-delete seem to be slightly out of sequence. |
The issue had no activity for 30 days, mark with Stale label. |
The issue had no activity for 30 days, mark with Stale label. |
yes, i also see this error while offloading of Pulsar 2.8.3 with s3 offloader in product env. |
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
.pulsar/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java
Lines 2001 to 2021 in 3acdbfe
pulsar/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java
Lines 1580 to 1583 in 3acdbfe
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: