You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/06/23 08:16:38 UTC

[GitHub] [pulsar-client-go] JoseFMP opened a new issue #295: Provide producer name

JoseFMP opened a new issue #295:
URL: https://github.com/apache/pulsar-client-go/issues/295


   According to Pulsar documentation, a message should have a "producer name":
   ![image](https://user-images.githubusercontent.com/24405049/85378157-5ffd1500-b564-11ea-8de0-31d5dd0d96c3.png)
   
   However, in this library there is no way to get the producer name upon reception of a message.
   
   It'd be lovely to have. What I want to do here is to avoid to read my own messages, so I would check who is the producer of a message and if is the same name as me, then I'd do not do anything with that message.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar-client-go] wolfstudy commented on issue #295: Provide producer name

Posted by GitBox <gi...@apache.org>.
wolfstudy commented on issue #295:
URL: https://github.com/apache/pulsar-client-go/issues/295#issuecomment-648531359


   @JoseFMP Thanks feedback, In `ProducerOptions` struct, we have provided the `Name` option to allow users to specify a name for a producer. If not assigned, the system will generate a globally unique name.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar-client-go] merlimat commented on issue #295: Provide producer name

Posted by GitBox <gi...@apache.org>.
merlimat commented on issue #295:
URL: https://github.com/apache/pulsar-client-go/issues/295#issuecomment-649742118


   @JoseFMP the `Message.getProducerName()` is already available in the other client libs and we have the info in the underlying protobuf metadata. It should be easy to expose that in the `Message` interface here. Do you want to give it a shot?
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar-client-go] merlimat closed issue #295: Provide producer name

Posted by GitBox <gi...@apache.org>.
merlimat closed issue #295:
URL: https://github.com/apache/pulsar-client-go/issues/295


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar-client-go] JoseFMP commented on issue #295: Provide producer name

Posted by GitBox <gi...@apache.org>.
JoseFMP commented on issue #295:
URL: https://github.com/apache/pulsar-client-go/issues/295#issuecomment-649183384


   @wolfstudy 
   Sorry that is unrelated to my request.
   
   My request is, according to Pulsar specs, a message carries as metadata the producer name. When I read a message, however, this pulsar go client, does not have implemented any way to retrieve the producer name. It'd be great to have.
   
   Note this has nothing to do whether you have the option to add the name in the producer or not.


----------------------------------------------------------------
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:
users@infra.apache.org