Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: zk disconnected, dubbo-go panic when subscribe. #613

Merged
merged 8 commits into from
Jun 28, 2020

Conversation

wenxuwan
Copy link
Member

What this PR does:

Which issue(s) this PR fixes:
try to fix #610
-->
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Copy link
Member

@zouyx zouyx left a comment

Choose a reason for hiding this comment

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

Travis failing

@wenxuwan
Copy link
Member Author

Travis failing

image

what's the meaning of Travis failing? As the picture shown, all checks have passed.

@zouyx
Copy link
Member

zouyx commented Jun 17, 2020

Travis failing

image

what's the meaning of Travis failing? As the picture shown, all checks have passed.

Sorry. File still conflicting

@zouyx zouyx self-assigned this Jun 17, 2020
@wenxuwan
Copy link
Member Author

Travis failing

image
what's the meaning of Travis failing? As the picture shown, all checks have passed.

Sorry. File still conflicting

ok, done

//When Zk disconnected, the Conn will be set to nil, so here need check the value of Conn
l.client.RLock()
if l.client.Conn == nil {
break
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this case trigger to auto-reconnect?

Copy link
Member

Choose a reason for hiding this comment

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

I have the same question. But travis still failing.

Copy link
Member Author

Choose a reason for hiding this comment

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

In my opinion, there is already have other case for trigger reconnect, so here may be just need stop the resubscribe process and wait reconnect finished.

By the way, the travis failed should not be caused by my changes, the error is:

image

may be you can re-trigger it..

Copy link
Member

@pantianying pantianying left a comment

Choose a reason for hiding this comment

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

大哥,这里有死锁吧

//When Zk disconnected, the Conn will be set to nil, so here need check the value of Conn
l.client.RLock()
if l.client.Conn == nil {
break
Copy link
Member

Choose a reason for hiding this comment

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

大哥 这里有死锁吧

Copy link
Member Author

Choose a reason for hiding this comment

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

是的。。。。

Copy link
Member

@zouyx zouyx left a comment

Choose a reason for hiding this comment

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

@wenxuwan wenxuwan changed the title try to fix panic when zk disconnected Fix issue 610 Jun 28, 2020
@zouyx zouyx changed the title Fix issue 610 Fix: zk disconnected, dubbo-go panic when subscribe. Jun 28, 2020
@zouyx zouyx assigned pantianying and unassigned zouyx Jun 28, 2020
@pantianying pantianying merged commit 2550126 into apache:develop Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants