lhotari commented on PR #23693: URL: https://github.com/apache/pulsar/pull/23693#issuecomment-2527179249
> I am curious about how pulsar ensure the two message ids from two clusters corresponding to the same message are equal, or they are just not equal? Not equal may introduce lots of problem. Good question. In the blue-green case the message id comparison most likely doesn't apply. In general there isn't a way to compare message ids between clusters. The Shadow Topic feature added a field to CommandSend to send the source cluster message id. It would be useful for translations, https://github.com/apache/pulsar/blob/9a97c843a46e23a0811e2172991cd00a3af642c0/pulsar-common/src/main/proto/PulsarApi.proto#L532-L533 . Taking this further and changing geo-replication to include the original message id and original source cluster would be useful for adding individual ack replication support to replicated subscriptions. Replicated subscriptions don't currently support individual acks and being able to compare message ids would be necessary for adding that feature. -- 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]
