Skip to content

fix continue can not connect to remote - #14296

Merged
mergify[bot] merged 3 commits into
matrixorigin:mainfrom
iamlinjunhong:issue-2128
Jan 22, 2024
Merged

mergify[bot] merged 3 commits into
matrixorigin:mainfrom
iamlinjunhong:issue-2128

Conversation

@iamlinjunhong

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #13764

What this PR does / why we need it:

fix continue can not connect to remote

@matrix-meow matrix-meow added the size/M Denotes a PR that changes [100,499] lines label Jan 19, 2024
@matrix-meow

Copy link
Copy Markdown
Contributor

@iamlinjunhong Thanks for your contributions!

Title: fix continue can not connect to remote

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:

  1. 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.

  2. 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.

  3. 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.

  4. In the service_test.go file of the lockservice package, a

@mergify
mergify Bot merged commit 27acc1e into matrixorigin:main Jan 22, 2024
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants