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 2021/11/10 04:30:36 UTC

[GitHub] [pulsar] yuruguo opened a new pull request #12709: [pulsar-admin] Print topic internal info as formatted json

yuruguo opened a new pull request #12709:
URL: https://github.com/apache/pulsar/pull/12709


   ### Motivation
   Currently, we can get topic internal info through CLI `bin/pulsar-admin topics info-internal tn1/ns1/tp1`, but I find that what we get is an un unformatted and unreadable string, as below:
   ```
   "{\"version\":0,\"partitions\":{\"persistent://pulsar/application-f75e774c-7e1e-405a-aa57-bfee90b93923/topic-partition-0\":{\"version\":0,\"creationDate\":\"2021-11-10T12:17:01.397+08:00\",\"modificationDate\":\"2021-11-10T12:17:01.397+08:00\",\"ledgers\":[],\"cursors\":{}},\"persistent://pulsar/application-f75e774c-7e1e-405a-aa57-bfee90b93923/topic-partition-1\":{\"version\":0,\"creationDate\":\"2021-11-10T12:17:01.414+08:00\",\"modificationDate\":\"2021-11-10T12:17:01.414+08:00\",\"ledgers\":[],\"cursors\":{}}}}"
   ```
   
   The purpose of this PR is to format topic internal info to make it clear and readable, as below:
   ```
   {
     "version": 0,
     "partitions": {
       "persistent://pulsar/application-f75e774c-7e1e-405a-aa57-bfee90b93923/topic-partition-0": {
         "version": 0,
         "creationDate": "2021-11-10T12:17:01.397+08:00",
         "modificationDate": "2021-11-10T12:17:01.397+08:00",
         "ledgers": [],
         "cursors": {}
       },
       "persistent://pulsar/application-f75e774c-7e1e-405a-aa57-bfee90b93923/topic-partition-1": {
         "version": 0,
         "creationDate": "2021-11-10T12:17:01.414+08:00",
         "modificationDate": "2021-11-10T12:17:01.414+08:00",
         "ledgers": [],
         "cursors": {}
       }
     }
   }
   ```
   
   ### Documentation
   - [x] `no-need-doc` 
   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] yuruguo commented on pull request #12709: [pulsar-admin] Print topic internal info as formatted json

Posted by GitBox <gi...@apache.org>.
yuruguo commented on pull request #12709:
URL: https://github.com/apache/pulsar/pull/12709#issuecomment-964782351


   @merlimat @eolivelli @codelipenghui @hangc0276 ptal, thx!


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] yuruguo commented on pull request #12709: [pulsar-admin] Print topic internal info as formatted json

Posted by GitBox <gi...@apache.org>.
yuruguo commented on pull request #12709:
URL: https://github.com/apache/pulsar/pull/12709#issuecomment-964835343


   /pulsarbot run-failure-checks


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] yuruguo removed a comment on pull request #12709: [pulsar-admin] Print topic internal info as formatted json

Posted by GitBox <gi...@apache.org>.
yuruguo removed a comment on pull request #12709:
URL: https://github.com/apache/pulsar/pull/12709#issuecomment-964782351


   @merlimat @eolivelli @codelipenghui @hangc0276 ptal, thx!


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] yuruguo commented on pull request #12709: [pulsar-admin] Print topic internal info as formatted json

Posted by GitBox <gi...@apache.org>.
yuruguo commented on pull request #12709:
URL: https://github.com/apache/pulsar/pull/12709#issuecomment-964806909


   /pulsarbot run-failure-checks


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui merged pull request #12709: [pulsar-admin] Print topic internal info as formatted json

Posted by GitBox <gi...@apache.org>.
codelipenghui merged pull request #12709:
URL: https://github.com/apache/pulsar/pull/12709


   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] yuruguo removed a comment on pull request #12709: [pulsar-admin] Print topic internal info as formatted json

Posted by GitBox <gi...@apache.org>.
yuruguo removed a comment on pull request #12709:
URL: https://github.com/apache/pulsar/pull/12709#issuecomment-964806909


   /pulsarbot run-failure-checks


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] yuruguo removed a comment on pull request #12709: [pulsar-admin] Print topic internal info as formatted json

Posted by GitBox <gi...@apache.org>.
yuruguo removed a comment on pull request #12709:
URL: https://github.com/apache/pulsar/pull/12709#issuecomment-964835343


   /pulsarbot run-failure-checks


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org