You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/10/15 05:33:53 UTC
[GitHub] [pulsar] rocketraman commented on issue #5202: Incorrect msgBacklog
value
rocketraman commented on issue #5202: Incorrect msgBacklog value
URL: https://github.com/apache/pulsar/issues/5202#issuecomment-542044367
I have this issue as well... one of my subscriptions to a partitioned topic is showing a backlog of 1 message, but that is incorrect -- the backlog is actually 0.
Partitioned stats:
```
{
"msgRateIn" : 0.0,
"msgThroughputIn" : 0.0,
"msgRateOut" : 0.0,
"msgThroughputOut" : 0.0,
"averageMsgSize" : 0.0,
"storageSize" : 2189,
"publishers" : [ {
"msgRateIn" : 0.0,
"msgThroughputIn" : 0.0,
"averageMsgSize" : 0.0,
"producerId" : 0
} ],
"subscriptions" : {
"__compaction" : {
"msgRateOut" : 0.0,
"msgThroughputOut" : 0.0,
"msgRateRedeliver" : 0.0,
"msgBacklog" : 0,
"blockedSubscriptionOnUnackedMsgs" : false,
"msgDelayed" : 0,
"unackedMessages" : 0,
"msgRateExpired" : 0.0,
"consumers" : [ ],
"isReplicated" : false
},
"test-xxx" : {
"msgRateOut" : 0.0,
"msgThroughputOut" : 0.0,
"msgRateRedeliver" : 0.0,
"msgBacklog" : 1,
"blockedSubscriptionOnUnackedMsgs" : false,
"msgDelayed" : 0,
"unackedMessages" : 1,
"msgRateExpired" : 0.0,
"consumers" : [ {
"msgRateOut" : 0.0,
"msgThroughputOut" : 0.0,
"msgRateRedeliver" : 0.0,
"availablePermits" : 998,
"unackedMessages" : 1,
"blockedConsumerOnUnackedMsgs" : false
} ],
"isReplicated" : false
}
},
"replication" : { },
"metadata" : {
"partitions" : 1
},
"partitions" : { }
}
```
and internal stats:
```
{
"entriesAddedCounter" : 28,
"numberOfEntries" : 8,
"totalSize" : 19297,
"currentLedgerEntries" : 7,
"currentLedgerSize" : 17114,
"lastLedgerCreatedTimestamp" : "2019-10-14T14:46:51.57Z",
"waitingCursorsCount" : 268,
"pendingAddEntriesCount" : 0,
"lastConfirmedEntry" : "81:6",
"state" : "LedgerOpened",
"ledgers" : [ {
"ledgerId" : 81,
"entries" : 0,
"size" : 0,
"offloaded" : false
} ],
"cursors" : {
"__compaction" : {
"markDeletePosition" : "81:6",
"readPosition" : "81:7",
"waitingReadOp" : false,
"pendingReadOps" : 0,
"messagesConsumedCounter" : 28,
"cursorLedger" : 85,
"cursorLedgerLastEntry" : 3,
"individuallyDeletedMessages" : "[]",
"lastLedgerSwitchTimestamp" : "2019-10-15T05:22:53.273Z",
"state" : "Open",
"numberOfEntriesSinceFirstNotAckedMessage" : 1,
"totalNonContiguousDeletedMessagesRange" : 0,
"properties" : {
"CompactedTopicLedger" : 86
}
},
"test-xxx" : {
"markDeletePosition" : "81:6",
"readPosition" : "81:7",
"waitingReadOp" : true,
"pendingReadOps" : 0,
"messagesConsumedCounter" : 27,
"cursorLedger" : 84,
"cursorLedgerLastEntry" : 5,
"individuallyDeletedMessages" : "[]",
"lastLedgerSwitchTimestamp" : "2019-10-15T05:19:49.576Z",
"state" : "Open",
"numberOfEntriesSinceFirstNotAckedMessage" : 1,
"totalNonContiguousDeletedMessagesRange" : 0,
"properties" : { }
}
}
}
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services