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.
   
   I tried to create a PR which solved the issue by extending out the go struct 
to include both the message ID pointer, and a C string containing the topic 
name. Unfortunately, there doesn't seem to be a way to create a `std::string` 
that the C++ `MessageId` can take a reference to, without adding new C++ 
functions to the library. I'm loathe to do that, so I think I need to pass this 
over to the C++ library maintainer to solve.


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