dsmlily commented on issue #147: consumer.Receive () is blocking, 
availablePermits are decreasing, but msgBacklog is increasing
URL: 
https://github.com/apache/pulsar-client-go/issues/147#issuecomment-570478120
 
 
   today, I reproduce this, and find that the consumer reconnects broker every 
90 seconds in blusar's logs, and the time is same as the connectedSince:
   
   #####  1、broker's logs:
   ```
   13:41:34.976 [pulsar-io-22-1] INFO  
org.apache.pulsar.broker.service.ServerCnx - New connection from 
/10.32.68.228:44686
   13:42:35.081 [pulsar-io-22-3] INFO  
org.apache.pulsar.broker.service.ServerCnx - New connection from 
/10.32.68.228:44762
   13:43:35.184 [pulsar-io-22-5] INFO  
org.apache.pulsar.broker.service.ServerCnx - New connection from 
/10.32.68.228:44842
   13:45:05.299 [pulsar-io-22-7] INFO  
org.apache.pulsar.broker.service.ServerCnx - New connection from 
/10.32.68.228:44960
   
   ```
   
   #####  2、topics stats:
   ```
   {
     "msgRateIn" : 0.0,
     "msgThroughputIn" : 0.0,
     "msgRateOut" : 2.6263857425095147,
     "msgThroughputOut" : 2382.13186845613,
     "averageMsgSize" : 0.0,
     "storageSize" : 3173,
     "publishers" : [ {
       "msgRateIn" : 0.0,
       "msgThroughputIn" : 0.0,
       "averageMsgSize" : 0.0,
       "producerId" : 8,
       "metadata" : { },
       "producerName" : "qa-pulsar-ali-27-0",
       "connectedSince" : "2020-01-03T11:00:41.272+08:00",
       "address" : "/10.32.32.223:52486"
     } ],
     "subscriptions" : {
       "response:10.32.68.228:8787:28065:1578020423793" : {
         "msgRateOut" : 2.6263857425095147,
         "msgThroughputOut" : 2382.13186845613,
         "msgRateRedeliver" : 0.0,
         "msgBacklog" : 6,
         "blockedSubscriptionOnUnackedMsgs" : false,
         "msgDelayed" : 0,
         "unackedMessages" : 0,
         "type" : "Failover",
         "activeConsumerName" : "hgijd",
         "msgRateExpired" : 0.0,
         "consumers" : [ {
           "msgRateOut" : 2.6263857425095147,
           "msgThroughputOut" : 2382.13186845613,
           "msgRateRedeliver" : 0.0,
           "consumerName" : "hgijd",
           "availablePermits" : 1017,
           "unackedMessages" : 0,
           "blockedConsumerOnUnackedMsgs" : false,
           "metadata" : { },
           "connectedSince" : "2020-01-03T13:45:05.3+08:00",
           "address" : "/10.32.68.228:44960"
         } ],
         "isReplicated" : false
       }
     },
     "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]


With regards,
Apache Git Services

Reply via email to