lhotari commented on issue #10054:
URL: https://github.com/apache/pulsar/issues/10054#issuecomment-810967690


   another observation. After leaving it running, there are negative values in 
the messagesConsumedCounter:
   
   ```json
   {
     "entriesAddedCounter" : 0,
     "numberOfEntries" : 48221,
     "totalSize" : 4931008,
     "currentLedgerEntries" : 0,
     "currentLedgerSize" : 0,
     "lastLedgerCreatedTimestamp" : "2021-03-31T10:42:19.984Z",
     "waitingCursorsCount" : 0,
     "pendingAddEntriesCount" : 0,
     "lastConfirmedEntry" : "0:48220",
     "state" : "LedgerOpened",
     "ledgers" : [ {
       "ledgerId" : 0,
       "entries" : 48221,
       "size" : 4931008,
       "offloaded" : false
     }, {
       "ledgerId" : 3,
       "entries" : 0,
       "size" : 0,
       "offloaded" : false
     } ],
     "cursors" : {
       "mysub" : {
         "markDeletePosition" : "0:38396",
         "readPosition" : "0:38397",
         "waitingReadOp" : false,
         "pendingReadOps" : 0,
         "messagesConsumedCounter" : -9824,
         "cursorLedger" : 2,
         "cursorLedgerLastEntry" : 97,
         "individuallyDeletedMessages" : "[]",
         "lastLedgerSwitchTimestamp" : "2021-03-31T10:42:19.999Z",
         "state" : "NoLedger",
         "numberOfEntriesSinceFirstNotAckedMessage" : 1,
         "totalNonContiguousDeletedMessagesRange" : 0,
         "properties" : {
           "pulsar.replicated.subscription" : 1
         }
       },
       "pulsar.repl.cluster-a" : {
         "markDeletePosition" : "0:48216",
         "readPosition" : "0:48217",
         "waitingReadOp" : false,
         "pendingReadOps" : 0,
         "messagesConsumedCounter" : -4,
         "cursorLedger" : 1,
         "cursorLedgerLastEntry" : 8490,
         "individuallyDeletedMessages" : "[]",
         "lastLedgerSwitchTimestamp" : "2021-03-31T10:42:20.002Z",
         "state" : "NoLedger",
         "numberOfEntriesSinceFirstNotAckedMessage" : 1,
         "totalNonContiguousDeletedMessagesRange" : 0,
         "properties" : { }
       }
     }
   }
   ```
   It seems odd to have negative values. I wonder if this causes any issues. 
   


-- 
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]


Reply via email to