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 2022/05/13 10:40:23 UTC

[GitHub] [pulsar] Shawyeok commented on issue #5202: Incorrect msgBacklog value

Shawyeok commented on issue #5202:
URL: https://github.com/apache/pulsar/issues/5202#issuecomment-1125905102

   We are suffering from same problem here, msgBacklog is 40k+ but real msgBacklog is 0. It is annoying cause it'll trigger alert but there isn't any real backlog.
   
   Stats with `preciseBacklog=false`
   ```json
   {
     "msgRateIn": 0.0,
     "msgThroughputIn": 0.0,
     "msgRateOut": 0.0,
     "msgThroughputOut": 0.0,
     "bytesInCounter": 335230277,
     "msgInCounter": 1584209,
     "bytesOutCounter": 177108372,
     "msgOutCounter": 789829,
     "averageMsgSize": 0.0,
     "msgChunkPublished": false,
     "storageSize": 305110652,
     "backlogSize": 296556524,
     "offloadedStorageSize": 0,
     "lastOffloadLedgerId": 0,
     "lastOffloadSuccessTimeStamp": 0,
     "lastOffloadFailureTimeStamp": 0,
     "publishers": [ ],
     "waitingPublishers": 0,
     "subscriptions": {
       "sub0": {
         "msgRateOut": 0.0,
         "msgThroughputOut": 0.0,
         "bytesOutCounter": 3064627,
         "msgOutCounter": 16150,
         "msgRateRedeliver": 0.0,
         "chunkedMessageRate": 0,
         "msgBacklog": 44708,
         "backlogSize": 0,
         "msgBacklogNoDelayed": 44708,
         "blockedSubscriptionOnUnackedMsgs": false,
         "msgDelayed": 0,
         "unackedMessages": 0,
         "type": "Shared",
         "msgRateExpired": 0.0,
         "totalMsgExpired": 0,
         "lastExpireTimestamp": 0,
         "lastConsumedFlowTimestamp": 1652265631373,
         "lastConsumedTimestamp": 0,
         "lastAckedTimestamp": 0,
         "lastMarkDeleteAdvancedTimestamp": 1652265631403,
         "consumers": [],
         "isDurable": true,
         "isReplicated": false,
         "consumersAfterMarkDeletePosition": {},
         "nonContiguousDeletedMessagesRanges": 0,
         "nonContiguousDeletedMessagesRangesSerializedSize": 60,
         "durable": true,
         "replicated": false
       },
       "sub1": {
         "msgRateOut": 0.0,
         "msgThroughputOut": 0.0,
         "bytesOutCounter": 171894114,
         "msgOutCounter": 761896,
         "msgRateRedeliver": 0.0,
         "chunkedMessageRate": 0,
         "msgBacklog": 0,
         "backlogSize": 0,
         "msgBacklogNoDelayed": 0,
         "blockedSubscriptionOnUnackedMsgs": false,
         "msgDelayed": 0,
         "unackedMessages": 0,
         "type": "Shared",
         "msgRateExpired": 0.0,
         "totalMsgExpired": 0,
         "lastExpireTimestamp": 0,
         "lastConsumedFlowTimestamp": 1652336505371,
         "lastConsumedTimestamp": 1652336498413,
         "lastAckedTimestamp": 1652336512153,
         "lastMarkDeleteAdvancedTimestamp": 1652336512153,
         "consumers": [ ],
         "isDurable": true,
         "isReplicated": false,
         "consumersAfterMarkDeletePosition": {},
         "nonContiguousDeletedMessagesRanges": 0,
         "nonContiguousDeletedMessagesRangesSerializedSize": 22,
         "durable": true,
         "replicated": false
       }
     },
     "replication": {},
     "deduplicationStatus": "Disabled",
     "nonContiguousDeletedMessagesRanges": 0,
     "nonContiguousDeletedMessagesRangesSerializedSize": 82,
     "compaction": {
       "lastCompactionRemovedEventCount": 0,
       "lastCompactionSucceedTimestamp": 0,
       "lastCompactionFailedTimestamp": 0,
       "lastCompactionDurationTimeInMills": 0
     }
   }
   ```
   
   internal-stats
   ```json
   {
     "waitingCursorsCount": 1,
     "pendingAddEntriesCount": 0,
     "entriesAddedCounter": 1584209,
     "numberOfEntries": 1413448,
     "totalSize": 305110652,
     "currentLedgerEntries": 0,
     "currentLedgerSize": 0,
     "lastLedgerCreatedTimestamp": "2022-05-12T18:04:59.17+08:00",
     "lastLedgerCreationFailureTimestamp": "",
     "lastConfirmedEntry": "114272945:43409",
     "state": "LedgerOpened",
     "ledgers": [
       {
         "ledgerId": 113999206,
         "entries": 50000,
         "size": 8831300,
         "offloaded": false
       },
       ...
       {
         "ledgerId": 114327876,
         "entries": 0,
         "size": 0,
         "offloaded": false
       }
     ],
     "cursors": {
       "sub0": {
         "markDeletePosition": "114272945:43409",
         "readPosition": "114272945:43410",
         "waitingReadOp": false,
         "pendingReadOps": 0,
         "messagesConsumedCounter": 1539501,
         "cursorLedger": 114594694,
         "cursorLedgerLastEntry": 0,
         "individuallyDeletedMessages": "[]",
         "lastLedgerWitchTimestamp": "",
         "state": "Open",
         "numberOfEntriesSinceFirstNotAckedMessage": 1,
         "totalNonContiguousDeletedMessagesRange": 0,
         "properties": {}
       },
       "sub1": {
         "markDeletePosition": "114272945:43409",
         "readPosition": "114272945:43410",
         "waitingReadOp": true,
         "pendingReadOps": 0,
         "messagesConsumedCounter": 1584421,
         "cursorLedger": 114275529,
         "cursorLedgerLastEntry": 16661,
         "individuallyDeletedMessages": "[]",
         "lastLedgerWitchTimestamp": "",
         "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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org