leftluoyi opened a new issue #210: producer.UpdateTopic not working URL: https://github.com/apache/pulsar-client-go/issues/210 #### Expected behavior After calling `producer.UpdateTopic(new_topic)`, `producer.Send()` should send the payload to the `new_topic`. #### Actual behavior `producer.Send()` still send the payload to the `old_topic` which used for `client.CreateProducer(old_topic)`. #### Steps to reproduce 1. Create Producer ``` const ns = "persistent://public/default/" producer, err := client.CreateProducer(pulsar.ProducerOptions{ Topic: ns + "old_topic", }) if err != nil { log.Fatal(err) } ``` 2. Update topic ``` producer.UpdateTopic(ns + "new_topic") ``` 3. Send the payload ``` _, err = producer.Send(context.Background(), &pulsar.ProducerMessage{ Payload: "any thing", }) ``` #### System configuration **Pulsar version**: 2.5.0
---------------------------------------------------------------- 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] With regards, Apache Git Services
