pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] ambition119 commented on issue #3264: partitioned-stats reporting errors not match
Date Wed, 09 Jan 2019 02:40:19 GMT
ambition119 commented on issue #3264: partitioned-stats reporting errors not match
URL: https://github.com/apache/pulsar/issues/3264#issuecomment-452551065
 
 
   if we create-partitioned-topic  is an operation to create zookeeper data for topic, but
no producer and subscription has ever been created, partitioned-stats should't return "Internal
topics have not been generated yet", should return topic default info, like:
   ```shell
   $ ./code/pulsar/pulsar_ms/bin/pulsar-admin topics create-partitioned-topic persistent://public/default/test-1
-p 2
   $ ./code/pulsar/pulsar_ms/bin/pulsar-admin topics partitioned-stats  persistent://public/default/test-1
   {
     "msgRateIn" : 0.0,
     "msgThroughputIn" : 0.0,
     "msgRateOut" : 0.0,
     "msgThroughputOut" : 0.0,
     "averageMsgSize" : 0.0,
     "storageSize" : 0,
     "publishers" : [ ],
     "subscriptions" : { },
     "replication" : { },
     "metadata" : {
       "partitions" : 2
     },
     "partitions" : { }
   }
   ```
   when producer and subscription has ever been created, return like:
   ```shell
   $ ./code/pulsar/pulsar_ms/bin/pulsar-client consume -s "test_1_sub" persistent://public/default/test-1
   $ ./code/pulsar/pulsar_ms/bin/pulsar-admin topics partitioned-stats  persistent://public/default/test-1
   {
     "msgRateIn" : 0.0,
     "msgThroughputIn" : 0.0,
     "msgRateOut" : 0.0,
     "msgThroughputOut" : 0.0,
     "averageMsgSize" : 0.0,
     "storageSize" : 0,
     "publishers" : [ ],
     "subscriptions" : {
       "test_1_sub" : {
         "msgRateOut" : 0.0,
         "msgThroughputOut" : 0.0,
         "msgRateRedeliver" : 0.0,
         "msgBacklog" : 0,
         "blockedSubscriptionOnUnackedMsgs" : false,
         "unackedMessages" : 0,
         "msgRateExpired" : 0.0,
         "consumers" : [ ]
       }
     },
     "replication" : { },
     "metadata" : {
       "partitions" : 2
     },
     "partitions" : { }
   }
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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

Mime
View raw message