michaeljmarshall commented on issue #15152:
URL: https://github.com/apache/pulsar/issues/15152#issuecomment-1145587036

   Quick update: I reproduced this behavior using a small standalone cluster on 
my machine. 
   
   1. Run `bin/pulsar standalone`.
   2. Run `bin/pulsar-admin topics create-partitioned-topic -p 1 test` (you 
only need a single partition).
   3. Start two producers that will maintain an active connection 
`bin/pulsar-perf produce -r 1 test`. (I didn't see any errors when connecting a 
single producer.)
   4. Run `bin/pulsar-admin topics partitioned-stats test` and get:
   
   ```
   HTTP 400 Bad Request
   
   Reason: HTTP 400 Bad Request
   ```
   
   Observations: it is relevant that this is reproducible with a single 
partition. It is also relevant that two producers need to be connected. When I 
ran the `bin/pulsar-admin topics partitioned-stats test` command with a single 
producer connected, I got the following
   ```
   $ bin/pulsar-admin topics partitioned-stats test
   {
     "msgRateIn" : 0.0,
     "msgThroughputIn" : 0.0,
     "msgRateOut" : 0.0,
     "msgThroughputOut" : 0.0,
     "bytesInCounter" : 5380,
     "msgInCounter" : 5,
     "bytesOutCounter" : 0,
     "msgOutCounter" : 0,
     "averageMsgSize" : 0.0,
     "msgChunkPublished" : false,
     "storageSize" : 25824,
     "backlogSize" : 0,
     "publishRateLimitedTimes" : 0,
     "earliestMsgPublishTimeInBacklogs" : 0,
     "offloadedStorageSize" : 0,
     "lastOffloadLedgerId" : 0,
     "lastOffloadSuccessTimeStamp" : 0,
     "lastOffloadFailureTimeStamp" : 0,
     "publishers" : [ {
       "msgRateIn" : 0.0,
       "msgThroughputIn" : 0.0,
       "averageMsgSize" : 0.0,
       "chunkedMessageRate" : 0.0,
       "producerId" : 0,
       "supportsPartialProducer" : false
     } ],
     "waitingPublishers" : 0,
     "subscriptions" : { },
     "replication" : { },
     "nonContiguousDeletedMessagesRanges" : 0,
     "nonContiguousDeletedMessagesRangesSerializedSize" : 0,
     "compaction" : {
       "lastCompactionRemovedEventCount" : 0,
       "lastCompactionSucceedTimestamp" : 0,
       "lastCompactionFailedTimestamp" : 0,
       "lastCompactionDurationTimeInMills" : 0
     },
     "metadata" : {
       "partitions" : 1
     },
     "partitions" : { }
   }
   ```
   
   As @jabbaugh's error indicates, this must have something to do with the way 
that the publishers object is being generated.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to