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 2020/03/02 09:15:50 UTC

[GitHub] [pulsar] Pixelartist edited a comment on issue #6427: State Functions - stuck after 3 events?

Pixelartist edited a comment on issue #6427: State Functions - stuck after 3 events?
URL: https://github.com/apache/pulsar/issues/6427#issuecomment-593300264
 
 
   Hello,
   
   I reproduced the problem once more - with the following output within the log files:
   
   logs/pulsar-standalone.log - empty
   tmp/functions/public/default/StateMe/StateMe-0.log - [StateMe-0.log](https://github.com/apache/pulsar/files/4274256/StateMe-0.log)
   
   Please see below - _input_ has more messages than _output_ where java shows a lot of io-errors during restart.
   
   running: `bin/pulsar-admin functions status   --tenant public   --namespace default   --name StateMe`
   ```
   {
     "numInstances" : 1,
     "numRunning" : 1,
     "instances" : [ {
       "instanceId" : 0,
       "status" : {
         "running" : true,
         "error" : "",
         "numRestarts" : 0,
         "numReceived" : 360,
         "numSuccessfullyProcessed" : 357,
         "numUserExceptions" : 0,
         "latestUserExceptions" : [ ],
         "numSystemExceptions" : 0,
         "latestSystemExceptions" : [ ],
         "averageLatency" : 44.71126457556289,
         "lastInvocationTime" : 1583137556896,
         "workerId" : "c-standalone-fw-localhost-8080"
       }
     } ]
   }
   ```
   
   running: ```
   bin/pulsar-admin functions querystate \
     --tenant public \
     --namespace default \
     --name StateMe \
     --key pulsar
   ```
   
   ```
   null
   
   Reason: javax.ws.rs.ProcessingException
   
   ```
   
   running:
   `bin/pulsar-admin topics stats-internal public/default/state-input`
   
   ```
   {
     "entriesAddedCounter" : 412,
     "numberOfEntries" : 412,
     "totalSize" : 25976,
     "currentLedgerEntries" : 412,
     "currentLedgerSize" : 25976,
     "lastLedgerCreatedTimestamp" : "2020-03-02T08:24:19.889Z",
     "waitingCursorsCount" : 1,
     "pendingAddEntriesCount" : 0,
     "lastConfirmedEntry" : "12:411",
     "state" : "LedgerOpened",
     "ledgers" : [ {
       "ledgerId" : 12,
       "entries" : 0,
       "size" : 0,
       "offloaded" : false
     } ],
     "cursors" : {
       "public%2Fdefault%2FStateMe" : {
         "markDeletePosition" : "12:356",
         "readPosition" : "12:412",
         "waitingReadOp" : true,
         "pendingReadOps" : 0,
         "messagesConsumedCounter" : 357,
         "cursorLedger" : 13,
         "cursorLedgerLastEntry" : 4,
         "individuallyDeletedMessages" : "[]",
         "lastLedgerSwitchTimestamp" : "2020-03-02T08:24:19.916Z",
         "state" : "Open",
         "numberOfEntriesSinceFirstNotAckedMessage" : 56,
         "totalNonContiguousDeletedMessagesRange" : 0,
         "properties" : { }
       }
     }
   }
   ```
   
   
   running:
   ` bin/pulsar-admin topics stats-internal public/default/state-output`
   
   ```
   {
     "entriesAddedCounter" : 326,
     "numberOfEntries" : 326,
     "totalSize" : 58601,
     "currentLedgerEntries" : 326,
     "currentLedgerSize" : 58601,
     "lastLedgerCreatedTimestamp" : "2020-03-02T08:24:36.057Z",
     "waitingCursorsCount" : 1,
     "pendingAddEntriesCount" : 0,
     "lastConfirmedEntry" : "14:325",
     "state" : "LedgerOpened",
     "ledgers" : [ {
       "ledgerId" : 14,
       "entries" : 0,
       "size" : 0,
       "offloaded" : false
     } ],
     "cursors" : {
       "my-subscription" : {
         "markDeletePosition" : "14:325",
         "readPosition" : "14:326",
         "waitingReadOp" : true,
         "pendingReadOps" : 0,
         "messagesConsumedCounter" : 326,
         "cursorLedger" : 15,
         "cursorLedgerLastEntry" : 4,
         "individuallyDeletedMessages" : "[]",
         "lastLedgerSwitchTimestamp" : "2020-03-02T08:24:36.107Z",
         "state" : "Open",
         "numberOfEntriesSinceFirstNotAckedMessage" : 1,
         "totalNonContiguousDeletedMessagesRange" : 0,
         "properties" : { }
       }
     }
   }
   ```
   
   
   
   Restart:
   ```
   bin/pulsar-admin functions restart   --tenant public   --namespace default   --name S
   tateMe
   ```
   Restarted successfully
   
   after restart:
   `bin/pulsar-admin functions status   --tenant public   --namespace default   --name StateMe`
   ```
   {
     "numInstances" : 1,
     "numRunning" : 0,
     "instances" : [ {
       "instanceId" : 0,
       "status" : {
         "running" : false,
         "error" : "UNAVAILABLE: io exception",
         "numRestarts" : 0,
         "numReceived" : 0,
         "numSuccessfullyProcessed" : 0,
         "numUserExceptions" : 0,
         "latestUserExceptions" : [ ],
         "numSystemExceptions" : 0,
         "latestSystemExceptions" : [ ],
         "averageLatency" : 0.0,
         "lastInvocationTime" : 0,
         "workerId" : "c-standalone-fw-localhost-8080"
       }
     } ]
   }
   ```
   
   -> [StateMe-0_after_restart.log](https://github.com/apache/pulsar/files/4274328/StateMe-0_after_restart.log)
   
   [display_log.log](https://github.com/apache/pulsar/files/4274460/display_log.log)
   [display_log.log](https://github.com/apache/pulsar/files/4274468/display_log.log)
   
   
   
   

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