[Bug] [broker] incorrect last message id from rest api
- Dominant language
- Java
- Stars
- 15.3k
- Forks
- 3.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 160
Description
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Version
master
### Minimal reproduce step
The last message id from binary protocal is `1947495:17782`.
```
17:42:35.775 [main] INFO org.apache.pulsar.client.impl.ConsumerImpl - [persistent://public/default/__transaction_buffer_snapshot-partition-2][multiTopicsReader-3b0ae499b9] Get topic last message Id
17:42:35.781 [pulsar-client-io-1-1] INFO org.apache.pulsar.client.impl.ConsumerImpl - [persistent://public/default/__transaction_buffer_snapshot-partition-2][multiTopicsReader-3b0ae499b9] Successfully getLastMessageId 1947495:17782
```
But the last message id from rest api is `269185:-1`
### What did you expect to see?
.
### What did you see instead?
.
### Anything else?
_No response_
### Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
Contributor guide
Assessment
This issue has not been assessed yet.