bschofield edited a comment on issue #6785:
URL: https://github.com/apache/pulsar/issues/6785#issuecomment-618379476


   These are not quite the same bug. The problem with the go/C client is that 
there is no way to set the topic name in a message ID, whereas the problem with 
the Java library is that the method exists but doesn't work. The two bugs 
should probably be tracked separately.
   
   For the go/C client, it's a little more complicated than I thought because 
the C++ `MessageId` type only keeps a reference to the topic name, not the 
actual topic name. This means that when we deserialize a go byte array into the 
message ID, we also need somehow to create a `std::string` to give it a 
reference to. There's no way to do that from cgo (that I know of), so I am 
blocked and I think I need to pass this over to the C++ library maintainer to 
solve.
   
   I notice that the official pure-go client is nearing being stable, so maybe 
the answer here is that anyone who needs message ID serialization functionality 
should look there.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to