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-2884] Task fail with post allocated but the pod will keep p… #916

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

zhuqi-lucas
Copy link
Contributor

@zhuqi-lucas zhuqi-lucas commented Sep 27, 2024

…ending

What is this PR for?

Application should also release task fail case, pod should be deleted, because TerminationType_STOPPED_BY_RM will also be called when task fail.
If we don't delete the pod, the pod will be stuck in pending state.

After applied this PR, the test passed locally.

Note:
I will create a e2e testing jira after this PR resolved.

And in future, i am working on retry policy when task failing, we will ajust this logic to pod pending and deallocate in core side, but until now, we need to make sure the task failed should be cleaned for applications.

What type of PR is it?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

Todos

  • - Task

What is the Jira issue?

How should this be tested?

Screenshots (if appropriate)

Questions:

  • - The licenses files need update.
  • - There is breaking changes for older versions.
  • - It needs documentation.

Copy link

codecov bot commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 68.15%. Comparing base (c959d23) to head (8b843cc).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pkg/cache/application.go 37.50% 2 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #916      +/-   ##
==========================================
- Coverage   68.20%   68.15%   -0.05%     
==========================================
  Files          70       70              
  Lines        7621     7625       +4     
==========================================
- Hits         5198     5197       -1     
- Misses       2215     2218       +3     
- Partials      208      210       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhuqi-lucas zhuqi-lucas self-assigned this Sep 27, 2024
@zhuqi-lucas zhuqi-lucas marked this pull request as draft September 27, 2024 13:46
@craigcondit
Copy link
Contributor

I don't think this is the correct approach. We're arguably making things worse by terminating the pod, as this makes viewing events on it for diagnostic purposes near impossible. I think we should be looking into ways to recover from this issue instead.

@zhuqi-lucas
Copy link
Contributor Author

Thanks @craigcondit,
I see, i will do the POC and design for the perfect solution.

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