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:when connect to provider fail, will occur panic #1021

Merged
merged 3 commits into from
Jan 30, 2021

Conversation

wenxuwan
Copy link
Member

@wenxuwan wenxuwan commented Jan 26, 2021

when connect to provider fail, buildInvokerChain function will occur panic

This Pr can fix #1014

…lop/github.com/dubbogo/gost-1.11.0

Bump github.com/dubbogo/gost from 1.10.1 to 1.11.0
@cityiron cityiron added this to the v1.5.6 milestone Jan 26, 2021
@cityiron cityiron changed the base branch from develop to 1.5 January 26, 2021 13:47
@wenxuwan wenxuwan changed the base branch from 1.5 to develop January 26, 2021 14:14
@codecov-io
Copy link

codecov-io commented Jan 27, 2021

Codecov Report

Merging #1021 (bfa9f5f) into develop (17c4a9e) will increase coverage by 0.02%.
The diff coverage is 30.76%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1021      +/-   ##
===========================================
+ Coverage    59.45%   59.48%   +0.02%     
===========================================
  Files          261      261              
  Lines        12950    12960      +10     
===========================================
+ Hits          7700     7709       +9     
- Misses        4276     4278       +2     
+ Partials       974      973       -1     
Impacted Files Coverage Δ
remoting/getty/getty_client.go 43.02% <22.22%> (-1.29%) ⬇️
...rotocol/protocolwrapper/protocol_filter_wrapper.go 48.14% <50.00%> (-1.86%) ⬇️
remoting/kubernetes/listener.go 50.52% <0.00%> (ø)
remoting/kubernetes/watch.go 79.12% <0.00%> (+2.19%) ⬆️
remoting/kubernetes/client.go 75.00% <0.00%> (+2.94%) ⬆️
...tocol/rest/server/server_impl/go_restful_server.go 48.78% <0.00%> (+4.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17c4a9e...bfa9f5f. Read the comment docs.

@@ -176,6 +176,8 @@ github.com/dubbogo/go-zookeeper v1.0.2/go.mod h1:fn6n2CAEer3novYgk9ULLwAjuV8/g4D
github.com/dubbogo/gost v1.9.0/go.mod h1:pPTjVyoJan3aPxBPNUX0ADkXjPibLo+/Ib0/fADXSG8=
github.com/dubbogo/gost v1.10.1 h1:39kF9Cd5JOiMpmwG6dX1/aLWNFqFv9gHp8HrhzMmjLY=
github.com/dubbogo/gost v1.10.1/go.mod h1:+mQGS51XQEUWZP2JeGZTxJwipjRKtJO7Tr+FOg+72rI=
github.com/dubbogo/gost v1.11.0 h1:9KtyWQz1gMlAfwzen5iyhMdoe08SPBBUVhco4rdgJ9I=
github.com/dubbogo/gost v1.11.0/go.mod h1:w8Yw29eDWtRVo3tx9nPpHkNZnOi4SRx1fZf7eVlAAU4=
Copy link
Contributor

Choose a reason for hiding this comment

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

'go mod tidy'

@zouyx zouyx added the bug Something isn't working label Jan 28, 2021
@@ -116,6 +117,7 @@ type Client struct {
addr string
opts Options
conf ClientConfig
mux sync.RWMutex
Copy link
Member

Choose a reason for hiding this comment

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

Why don't you use anonymous combination in this case?

Copy link
Member Author

Choose a reason for hiding this comment

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

may be will add GetMux function to get lock of client

Copy link
Member

@zouyx zouyx Jan 30, 2021

Choose a reason for hiding this comment

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

- -

@AlexStocks AlexStocks merged commit 5c76040 into apache:develop Jan 30, 2021
AlexStocks added a commit that referenced this pull request Apr 14, 2021
FIX:when connect to provider fail, will occur panic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants