rvashishth commented on issue #9603:
URL: https://github.com/apache/pulsar/issues/9603#issuecomment-780348278
Following are the example topic stats after running through error steps
1. create topic
2. produce message
3. create subscription
admin/v2/persistent/{tenant}/{namespace}/{topic}/internalStats
```
{
"entriesAddedCounter": 2,
"numberOfEntries": 2,
"totalSize": 140,
"currentLedgerEntries": 2,
"currentLedgerSize": 140,
"lastLedgerCreatedTimestamp": "2021-02-15T11:09:08.485Z",
"waitingCursorsCount": 0,
"pendingAddEntriesCount": 0,
"lastConfirmedEntry": "60:1",
"state": "LedgerOpened",
"ledgers": [
{
"ledgerId": 60,
"entries": 0,
"size": 0,
"offloaded": false
}
],
"cursors": {
"subscription-1": {
"markDeletePosition": "60:-1",
"readPosition": "60:-1",
"waitingReadOp": false,
"pendingReadOps": 0,
"messagesConsumedCounter": 0,
"cursorLedger": 61,
"cursorLedgerLastEntry": 1,
"individuallyDeletedMessages": "[]",
"lastLedgerSwitchTimestamp": "2021-02-15T11:45:53.569Z",
"state": "Open",
"numberOfEntriesSinceFirstNotAckedMessage": 0,
"totalNonContiguousDeletedMessagesRange": 0,
"properties": {}
}
},
"compactedLedger": {
"ledgerId": -1,
"entries": -1,
"size": -1,
"offloaded": false
}
}
```
/admin/v2/persistent/{tenant}/{namespace}/{topic}/stats
```
{
"msgRateIn": 0.0,
"msgThroughputIn": 0.0,
"msgRateOut": 0.0,
"msgThroughputOut": 0.0,
"bytesInCounter": 140,
"msgInCounter": 2,
"bytesOutCounter": 0,
"msgOutCounter": 0,
"averageMsgSize": 0.0,
"msgChunkPublished": false,
"storageSize": 140,
"backlogSize": 140,
"publishers": [],
"subscriptions": {
"subscription-1": {
"msgRateOut": 0.0,
"msgThroughputOut": 0.0,
"bytesOutCounter": 0,
"msgOutCounter": 0,
"msgRateRedeliver": 0.0,
"chuckedMessageRate": 0,
"msgBacklog": 2,
"msgBacklogNoDelayed": 2,
"blockedSubscriptionOnUnackedMsgs": false,
"msgDelayed": 0,
"unackedMessages": 0,
"msgRateExpired": 0.0,
"lastExpireTimestamp": 1613390505451,
"lastConsumedFlowTimestamp": 0,
"lastConsumedTimestamp": 0,
"lastAckedTimestamp": 0,
"consumers": [],
"isDurable": true,
"isReplicated": false,
"consumersAfterMarkDeletePosition": {}
}
},
"replication": {},
"deduplicationStatus": "Disabled"
}
```
----------------------------------------------------------------
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:
[email protected]