-
Notifications
You must be signed in to change notification settings - Fork 49
Description
Hi all,
As discussed in apache/pulsar#10483 and apache/pulsar#10328, it seems like the official way to get the latest message is to register a reader using startMessageIdInclusive and set the message id to latest.
It seems like the functionality was added in the C++ client over at https://github.com/apache/pulsar/pull/17209/files, however has yet to come to the python client itself.
I believe (and very happy to be proven wrong), that this means python clients have no way of actually getting the latest value apart from iterating from the start, which is seems... suboptimal.
I think the change is very simple, like adding the property to https://github.com/apache/pulsar-client-python/blob/main/src/config.cc#L276, adding it to the conf when making a reader, and updating the python signature. But the last time I wrote and compiled C++ was back in undergrad and I'm unsure how to even set up a development environment to contribute and test the issue.