Skip to content

Conversation

@baomingyu
Copy link
Contributor

Fixes #640

Master Issue: #640

go client create producer and consumer client way is different with java client. and go client will throw error when call grabCnx while Lookup or after sending CommandProducer.
if use get this error, use must retry recreate client and this way is not neccessary. and connect need to reconnect while send or connect check way.

java client handle like this, so it need be changed .

image
image
and java code is this
image

if err != nil {
pc.log.WithError(err).Warn("Failed to lookup topic")
pc.log.WithError(err).Warn("Failed to lookup topic, it will be retried later!")
pc.connectClosedCh <- connectionClosed{}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the Lookup request fails, it is inconsistent with the connectionClosed error. At this time, we don’t need to write back the semaphore to the closed channel.

@baomingyu baomingyu requested a review from wolfstudy October 16, 2021 08:20
@wolfstudy wolfstudy added this to the 0.9.0 milestone Feb 16, 2022
@freeznet freeznet modified the milestones: v0.9.0, v0.10.0 Jul 4, 2022
@RobertIndie RobertIndie modified the milestones: v0.10.0, v0.11.0 Mar 27, 2023
@RobertIndie RobertIndie modified the milestones: v0.11.0, v0.12.0 Jul 4, 2023
@RobertIndie RobertIndie modified the milestones: v0.12.0, v0.13.0 Jan 10, 2024
@RobertIndie RobertIndie modified the milestones: v0.13.0, v0.14.0 Jul 15, 2024
@RobertIndie RobertIndie modified the milestones: v0.14.0, v0.15.0 Oct 8, 2024
@RobertIndie RobertIndie modified the milestones: v0.15.0, v0.16.0 May 15, 2025
@RobertIndie RobertIndie removed this from the v0.16.0 milestone Jul 29, 2025
@RobertIndie RobertIndie added this to the v0.17.0 milestone Jul 29, 2025
@RobertIndie RobertIndie modified the milestones: v0.17.0, v0.18.0 Oct 23, 2025
@RobertIndie RobertIndie modified the milestones: v0.18.0, v0.19.0 Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants