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(master): if init data partitions failed when create volume, mark volume status as delete to trigger background deletion. #2653

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

true1064
Copy link
Contributor

What this PR does / why we need it:
currently, if initDataPartitions() failed in the creating vol procedure, the vol info is not cleaned, so it can be found in the master but can't be used.
should clean the vol info if initDataPartitions() failed when creating.

Which issue this PR fixes:

fixes #2019

…volume status as delete to trigger background deletion.

close: cubefs#2019
Signed-off-by: true1064 <tangjingyu@oppo.com>
@netlify
Copy link

netlify bot commented Sep 27, 2023

Deploy Preview for cubefs-check ready!

Name Link
🔨 Latest commit efcefc9
🔍 Latest deploy log https://app.netlify.com/sites/cubefs-check/deploys/65139e64e810800008867ea9
😎 Deploy Preview https://deploy-preview-2653--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.

Copy link
Member

@Victor1319 Victor1319 left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Merging #2653 (efcefc9) into master (ae9c85a) will increase coverage by 0.01%.
Report is 4 commits behind head on master.
The diff coverage is 79.52%.

@@            Coverage Diff             @@
##           master    #2653      +/-   ##
==========================================
+ Coverage   41.96%   41.97%   +0.01%     
==========================================
  Files         566      566              
  Lines      115786   115861      +75     
==========================================
+ Hits        48584    48636      +52     
- Misses      63020    63045      +25     
+ Partials     4182     4180       -2     
Files Coverage Δ
blobstore/common/rpc/auditlog/auditlog.go 85.86% <100.00%> (+0.31%) ⬆️
blobstore/common/trace/tracer.go 98.75% <ø> (ø)
metanode/inode.go 46.90% <ø> (-0.08%) ⬇️
metanode/partition_fsmop_dentry.go 32.89% <ø> (-0.36%) ⬇️
metanode/partition_fsmop_inode.go 36.64% <ø> (-0.59%) ⬇️
blobstore/common/trace/span.go 90.22% <93.87%> (+1.83%) ⬆️
metanode/manager_op.go 2.84% <0.00%> (-0.01%) ⬇️
master/cluster.go 42.75% <12.50%> (-0.06%) ⬇️

... and 16 files with indirect coverage changes

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

Copy link
Member

@leonrayang leonrayang left a comment

Choose a reason for hiding this comment

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

LGTM

@leonrayang leonrayang merged commit 4040557 into cubefs:master Sep 27, 2023
12 checks passed
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.

[Bug]: create volume init data error but can get volume
3 participants