You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "BewareMyPower (via GitHub)" <gi...@apache.org> on 2025/06/06 07:49:15 UTC

[PR] Support deserializing a message id from bytes and topic [pulsar-client-python]

BewareMyPower opened a new pull request, #259:
URL: https://github.com/apache/pulsar-client-python/pull/259

   This is a catch up for Java's `MessageId#fromByteArrayWithTopic`.
   
   The topic name is not a part of message id's protobuf definition, while the multi-topics consumer requires a message id with topic name set. There is no way to create a message id with topic name set from the serialized bytes.
   
   With this patch, users should serialize message id, as well as the topic name. During the deserialization, pass the topic name as the 2nd argument of `MessageId.deserialize`.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Support deserializing a message id from bytes and topic [pulsar-client-python]

Posted by "BewareMyPower (via GitHub)" <gi...@apache.org>.
BewareMyPower merged PR #259:
URL: https://github.com/apache/pulsar-client-python/pull/259


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org