eolivelli commented on issue #10813: URL: https://github.com/apache/pulsar/issues/10813#issuecomment-854720684
I am rerunning the after @codelipenghui fix. This is the dump of the stats now that the consumer is still connected and waiting for messages. the interesting point is that for partition 1 (and for other partitions it happens the same) we see "numberOfEntriesSinceFirstNotAckedMessage" : 19 and "msgBacklog" : 18 so it looks like the messages have been delivered to the consumer from the broker point of view, but they are not received by the application. > bin/pulsar-admin topics partitioned-stats test > { > "msgRateIn" : 0.0, > "msgThroughputIn" : 0.0, > "msgRateOut" : 0.0, > "msgThroughputOut" : 0.0, > "bytesInCounter" : 1099448813, > "msgInCounter" : 1000000, > "bytesOutCounter" : 1099094585, > "msgOutCounter" : 999678, > "averageMsgSize" : 0.0, > "msgChunkPublished" : false, > "storageSize" : 1099448813, > "backlogSize" : 461972, > "offloadedStorageSize" : 0, > "publishers" : [ ], > "waitingPublishers" : 0, > "subscriptions" : { > "nb" : { > "msgRateOut" : 0.0, > "msgThroughputOut" : 0.0, > "bytesOutCounter" : 1099094585, > "msgOutCounter" : 999678, > "msgRateRedeliver" : 0.0, > "chuckedMessageRate" : 0, > "chunkedMessageRate" : 0, > "msgBacklog" : 295, > "backlogSize" : 0, > "msgBacklogNoDelayed" : 295, > "blockedSubscriptionOnUnackedMsgs" : false, > "msgDelayed" : 0, > "unackedMessages" : 0, > "msgRateExpired" : 0.0, > "totalMsgExpired" : 0, > "lastExpireTimestamp" : 0, > "lastConsumedFlowTimestamp" : 0, > "lastConsumedTimestamp" : 0, > "lastAckedTimestamp" : 0, > "lastMarkDeleteAdvancedTimestamp" : 0, > "consumers" : [ { > "msgRateOut" : 0.0, > "msgThroughputOut" : 0.0, > "bytesOutCounter" : 1099094585, > "msgOutCounter" : 999678, > "msgRateRedeliver" : 0.0, > "chuckedMessageRate" : 0.0, > "chunkedMessageRate" : 0.0, > "availablePermits" : 87822, > "unackedMessages" : 0, > "avgMessagesPerEntry" : 0, > "blockedConsumerOnUnackedMsgs" : false, > "lastAckedTimestamp" : 0, > "lastConsumedTimestamp" : 0 > } ], > "isDurable" : true, > "isReplicated" : false, > "consumersAfterMarkDeletePosition" : { }, > "nonContiguousDeletedMessagesRanges" : 0, > "nonContiguousDeletedMessagesRangesSerializedSize" : 0 > } > }, > "replication" : { }, > "nonContiguousDeletedMessagesRanges" : 0, > "nonContiguousDeletedMessagesRangesSerializedSize" : 0, > "metadata" : { > "partitions" : 100 > }, > "partitions" : { } > } > pulsar-admin topics stats test-partition-1xt > { > "msgRateIn" : 0.0, > "msgThroughputIn" : 0.0, > "msgRateOut" : 0.0, > "msgThroughputOut" : 0.0, > "bytesInCounter" : 10908949, > "msgInCounter" : 9924, > "bytesOutCounter" : 10888019, > "msgOutCounter" : 9905, > "averageMsgSize" : 0.0, > "msgChunkPublished" : false, > "storageSize" : 10908949, > "backlogSize" : 30209, > "offloadedStorageSize" : 0, > "publishers" : [ ], > "waitingPublishers" : 0, > "subscriptions" : { > "nb" : { > "msgRateOut" : 0.0, > "msgThroughputOut" : 0.0, > "bytesOutCounter" : 10888019, > "msgOutCounter" : 9905, > "msgRateRedeliver" : 0.0, > "chuckedMessageRate" : 0, > "chunkedMessageRate" : 0, > "msgBacklog" : 18, > "backlogSize" : 0, > "msgBacklogNoDelayed" : 18, > "blockedSubscriptionOnUnackedMsgs" : false, > "msgDelayed" : 0, > "unackedMessages" : 0, > "type" : "Shared", > "msgRateExpired" : 0.0, > "totalMsgExpired" : 0, > "lastExpireTimestamp" : 0, > "lastConsumedFlowTimestamp" : 1622812090363, > "lastConsumedTimestamp" : 1622812090524, > "lastAckedTimestamp" : 1622812090688, > "lastMarkDeleteAdvancedTimestamp" : 1622812090688, > "consumers" : [ { > "msgRateOut" : 0.0, > "msgThroughputOut" : 0.0, > "bytesOutCounter" : 10888019, > "msgOutCounter" : 9905, > "msgRateRedeliver" : 0.0, > "chuckedMessageRate" : 0.0, > "chunkedMessageRate" : 0.0, > "consumerName" : "a1c51", > "availablePermits" : 845, > "unackedMessages" : 0, > "avgMessagesPerEntry" : 6, > "blockedConsumerOnUnackedMsgs" : false, > "lastAckedTimestamp" : 1622812090688, > "lastConsumedTimestamp" : 1622812090524, > "metadata" : { }, > "address" : "/10.244.2.72:33182", > "connectedSince" : "2021-06-04T13:07:49.122104Z", > "clientVersion" : "2.8.0-SNAPSHOT" > } ], > "isDurable" : true, > "isReplicated" : false, > "consumersAfterMarkDeletePosition" : { }, > "nonContiguousDeletedMessagesRanges" : 0, > "nonContiguousDeletedMessagesRangesSerializedSize" : 0 > } > }, > "replication" : { }, > "deduplicationStatus" : "Disabled", > "nonContiguousDeletedMessagesRanges" : 0, > "nonContiguousDeletedMessagesRangesSerializedSize" : 0 > } ``` pulsar-admin topics stats-internal test-partition-1 { "entriesAddedCounter" : 8935, "numberOfEntries" : 8935, "totalSize" : 10908949, "currentLedgerEntries" : 8935, "currentLedgerSize" : 10908949, "lastLedgerCreatedTimestamp" : "2021-06-04T12:20:18.707Z", "waitingCursorsCount" : 0, "pendingAddEntriesCount" : 0, "lastConfirmedEntry" : "28:8934", "state" : "LedgerOpened", "ledgers" : [ { "ledgerId" : 28, "entries" : 0, "size" : 0, "offloaded" : false, "underReplicated" : false } ], "cursors" : { "nb" : { "markDeletePosition" : "28:8916", "readPosition" : "28:8935", "waitingReadOp" : false, "pendingReadOps" : 0, "messagesConsumedCounter" : 8917, "cursorLedger" : 62, "cursorLedgerLastEntry" : 24, "individuallyDeletedMessages" : "[]", "lastLedgerSwitchTimestamp" : "2021-06-04T12:20:18.74Z", "state" : "Open", "numberOfEntriesSinceFirstNotAckedMessage" : 19, "totalNonContiguousDeletedMessagesRange" : 0, "subscriptionHavePendingRead" : false, "subscriptionHavePendingReplayRead" : false, "properties" : { } } }, "schemaLedgers" : [ ], "compactedLedger" : { "ledgerId" : -1, "entries" : -1, "size" : -1, "offloaded" : false, "underReplicated" : false } } ``` -- 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: us...@infra.apache.org