You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Body: This pull request fixes an issue where the "continue" command cannot connect to the remote server.
Changes:
Added a new method GetCNServiceWithoutWorkingState to the cluster struct in the clusterservice package.
Modified the NewClient function in the rpc.go file of the lockservice package to accept an additional parameter s *service.
Modified the AsyncSend method in the client struct in the rpc.go file of the lockservice package to handle lock table bind changes.
Added a new test case TestIssue2128 in the service_test.go file of the lockservice package.
Review:
In the cluster.go file of the clusterservice package, the new method GetCNServiceWithoutWorkingState has been added. However, the implementation of this method is incomplete. It calls the waitReady method, acquires a read lock, and iterates over c.mu.cnServices, but it does not perform any action on the cn object. This method should be implemented properly to serve its intended purpose.
In the rpc.go file of the lockservice package, the NewClient function has been modified to accept an additional parameter s *service. However, this change is not utilized in the function. If the s parameter is intended to be used, it should be utilized in the function logic.
In the rpc.go file of the lockservice package, the AsyncSend method has been modified to handle lock table bind changes. However, the implementation of this feature is incomplete. The logic for handling bind changes is present, but it is not clear how the new bind information is obtained or how it is used. This logic should be implemented properly to handle bind changes correctly.
In the service_test.go file of the lockservice package, a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
issue #13764
What this PR does / why we need it:
fix continue can not connect to remote