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

[YUNIKORN-459]Implement the placeholder cleanup in PlaceholderManager #207

Merged
merged 2 commits into from
Nov 25, 2020

Conversation

HuangTing-Yao
Copy link
Contributor

Clean up all placeholder pod and task.
Please review @yangwwei
Thanks.

@codecov
Copy link

codecov bot commented Nov 23, 2020

Codecov Report

❗ No coverage uploaded for pull request base (YUNIKORN-2@f5fb65f). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             YUNIKORN-2     #207   +/-   ##
=============================================
  Coverage              ?   59.23%           
=============================================
  Files                 ?       36           
  Lines                 ?     3120           
  Branches              ?        0           
=============================================
  Hits                  ?     1848           
  Misses                ?     1192           
  Partials              ?       80           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5fb65f...3cde71a. Read the comment docs.

pkg/cache/placeholder_manager.go Show resolved Hide resolved
Comment on lines 86 to 90
err = app.removeTask(taskID)
if err != nil {
log.Logger().Error("failed to remove task from application",
zap.Error(err))
}
Copy link
Contributor

Choose a reason for hiding this comment

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

second thought, let's remove this. We do not need to remove the task from the app while cleaning up the placeholders. Task needs to be cleaned up separately, the normal process involves the core side to release corresponding resources in the scheduler.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, done.

pkg/cache/placeholder_manager_test.go Show resolved Hide resolved
Copy link
Contributor

@yangwwei yangwwei left a comment

Choose a reason for hiding this comment

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

+1

@yangwwei yangwwei merged commit 44b4069 into apache:YUNIKORN-2 Nov 25, 2020
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.

2 participants