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

enhance(client): improve the client restore process #2031

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

liubingxing
Copy link
Collaborator

@liubingxing liubingxing commented May 29, 2023

The following figure shows the process of upgrading cfs-client. This is a good feature and we want to use it in production environment.
We tested it for a while and found some problems, especially when the old client processing quit but the new client failed to start up, will cause the test failed.
image

So we want to improve the process that the old client waits until the new client restored data.
image

The main changes are as follow:

  1. Restoring the nodecache correctly, including the name attribute
  2. The old client continues to suspend after its trySuspend function is completed. After the new client restored data, it sends the shutdown command to make the old client quit.

@netlify
Copy link

netlify bot commented May 29, 2023

Deploy Preview for cubefs-check ready!

Name Link
🔨 Latest commit de09687
🔍 Latest deploy log https://app.netlify.com/sites/cubefs-check/deploys/64a24c26e6c93a0008e24c56
😎 Deploy Preview https://deploy-preview-2031--cubefs-check.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@liubingxing liubingxing changed the title GitHub client enhance(client): improve the client restore process May 29, 2023
@liubingxing liubingxing force-pushed the github_client branch 2 times, most recently from ed9fdbf to ed5abf7 Compare May 29, 2023 11:12
@codecov-commenter
Copy link

codecov-commenter commented May 29, 2023

Codecov Report

Merging #2031 (ed5abf7) into master (06a7c75) will decrease coverage by 0.33%.
The diff coverage is 0.00%.

❗ Current head ed5abf7 differs from pull request most recent head de09687. Consider uploading reports for the commit de09687 to get more accurate results

@@            Coverage Diff             @@
##           master    #2031      +/-   ##
==========================================
- Coverage   45.27%   44.94%   -0.33%     
==========================================
  Files         448      446       -2     
  Lines       71837    71805      -32     
==========================================
- Hits        32521    32276     -245     
- Misses      37056    37292     +236     
+ Partials     2260     2237      -23     
Impacted Files Coverage Δ
util/exporter/exporter.go 1.21% <0.00%> (-0.13%) ⬇️

... and 74 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@liubingxing
Copy link
Collaborator Author

@leonrayang @Victor1319 Please take a look at this PR. Thanks a lot.

@Victor1319 Victor1319 requested review from bboyCH4 and removed request for Victor1319 June 5, 2023 02:03
bboyCH4
bboyCH4 previously approved these changes Jun 7, 2023
@sejust sejust added the NEED RESOLVE CONFLICT Need for conflict resolution label Jun 30, 2023
Signed-off-by: liubingxing <liubbingxing@gmail.com>
Signed-off-by: liubingxing <liubbingxing@gmail.com>
@liubingxing
Copy link
Collaborator Author

@sejust Code conflict resolved, please review again. Thanks a lot.

@sejust sejust removed the NEED RESOLVE CONFLICT Need for conflict resolution label Jul 4, 2023
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.

None yet

4 participants