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

bugfix: clean up orphaned thinruntime resources #3393

Conversation

TrafalgarZZZ
Copy link
Member

Ⅰ. Describe what this PR does

Since #3272 , Fluid now uses configmaps as the default HELM_DRIVER in Fluid controllers. However, this may lead to several upgrading issues like orphaned resources.

This PR checks and deletes these orphaned resources in a best-effort way.

Ⅱ. Does this pull request fix one issue?

fixes #XXXX

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Merging #3393 (f5097e4) into master (2549d23) will decrease coverage by 0.01%.
The diff coverage is 53.33%.

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

@@            Coverage Diff             @@
##           master    #3393      +/-   ##
==========================================
- Coverage   64.40%   64.40%   -0.01%     
==========================================
  Files         441      441              
  Lines       25978    25993      +15     
==========================================
+ Hits        16732    16740       +8     
- Misses       7268     7272       +4     
- Partials     1978     1981       +3     
Files Changed Coverage Δ
pkg/ddc/thin/shutdown.go 48.61% <53.33%> (+0.54%) ⬆️

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
19.2% 19.2% Duplication

@@ -69,7 +69,17 @@ func (t *ThinEngine) destroyMaster() (err error) {
if err != nil {
return
}
return
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you make the logic clear to understand?

Copy link
Collaborator

@cheyang cheyang left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@fluid-e2e-bot
Copy link

fluid-e2e-bot bot commented Aug 10, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheyang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fluid-e2e-bot fluid-e2e-bot bot merged commit 250e170 into fluid-cloudnative:master Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants