legendtkl opened a new pull request #3251: cli support for getting last message 
id of a topic
URL: https://github.com/apache/pulsar/pull/3251
 
 
   Just as @sijie said in https://github.com/apache/pulsar/pull/3243 ,
   
   "typically for a given rest endpoint, it should be documented for 3 parts, 
1) http rest api 2) pulsar-admin 3) admin java api. Can you follow what other 
endpoints do?"
   
   This pr is add cli support to get last message id of a topic
   1. add cli support for api: 
/admin/v2/persistent/{tenant}/{namespace}/{topic}/lastMessageId
   2. the cli command is like: ./pulsar-admin topics last-message-id topic-name
   
   Test Result:
   
   ```bash
   ➜  bin ./pulsar-admin topics last-message-id 
persistent://public/default/my-topic
   {
     "ledgerId" : 10,
     "entryId" : -1,
     "partitionIndex" : -1
   }
   ➜  bin ./pulsar-admin topics last-message-id 
persistent://public/default/my-topi
   Topic not found
   
   Reason: Topic not found
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to