Repository navigation
[YUNIKORN-3483] Reinstate Partition state transitions - #1174
manirajv06 wants to merge 4 commits into
Conversation
rjgoyln
left a comment
There was a problem hiding this comment.
I had three notes below: one blocking concern around draining queues no longer being scheduled, and two smaller points on the partition state handling.
Separately, Stop/Stopped are still defined in object_state.go and tested in object_state_test.go, although there don't seem to be any callers left. Removing them from there would make the implementation consistent with the description.
Just some thoughts from my side — happy to be corrected if I’m missing something.
wilfred-s
left a comment
There was a problem hiding this comment.
Lets not remove the stopped state. It might not fully fit in for the partition at the moment but I logged YUNIKORN-3490 to expose the stopped state as it was supposed to be exposed for the queues.
b4745f4 to
4564f95
Compare
|
Summary of the changes: Pending allocations in |
rjgoyln
left a comment
There was a problem hiding this comment.
LGTM! Just two small nits on the test coverage.
4564f95 to
ed41d45
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1174 +/- ##
==========================================
- Coverage 83.27% 83.26% -0.02%
==========================================
Files 104 104
Lines 14460 14463 +3
==========================================
+ Hits 12041 12042 +1
- Misses 2131 2132 +1
- Partials 288 289 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
Reinstated the partition object state transitions. State would be marked as "draining" before heading to deletion process which could prevent any activity imposed on it. Activity could be either add app or node, update allocation etc. In case state already marked as "draining", updating the properties of the same partition object would reverse the state to "active".
Removed "stopped" state as it is not really used anymore. Updated Queue object state based on the same approach.
Type of change
Please delete options that are not relevant.
Jira issue
Jira ID : https://issues.apache.org/jira/browse/YUNIKORN-3483
AI Tooling
If an AI tool was used:
Check https://www.apache.org/legal/generative-tooling.html for details.
How has this been tested?
make test_allwas run, and no failures reported.Questions:
release-noteslabel.Screenshots or other details