BewareMyPower commented on issue #18835:
URL: https://github.com/apache/pulsar/issues/18835#issuecomment-1519345726

   @tisonkun No. Users don't need to know which fields define the uniqueness of 
a MessageId. If the `MessageId` instances were retrieved from `receive` are 
guaranteed to be different. There is also a public `compareTo` method to 
compare two `MessageId` instances.
   
   I think the main problem of the issue is that many pulsar-admin APIs 
requires users to provide the ledger id and the entry id. Unfortunately, we 
still need the batch index field for these APIs to locate a unique message.
   
   First, in the documents, we can tell users how to retrieve these fields, it 
would be easy to do that with the help of `MessageIdAdv`. Second, we should 
improve these APIs to accept the batch index.


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