-
Notifications
You must be signed in to change notification settings - Fork 42
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
Don't prune traversal by leaf vertex subplans #1314
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
match allocate @TEST_SRCDIR@/data/resource/jobspecs/issues/issue1260.yaml | ||
quit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
---------ssd0[1024:x] | ||
------------core0[1:x] | ||
------------core1[1:x] | ||
------------core2[1:x] | ||
------------core3[1:x] | ||
------------core4[1:x] | ||
------------core5[1:x] | ||
------------core6[1:x] | ||
------------core7[1:x] | ||
------------core8[1:x] | ||
------------core9[1:x] | ||
---------compute-01[1:x] | ||
------rack0[1:s] | ||
---compute0[1:s] | ||
INFO: ============================= | ||
INFO: JOBID=1 | ||
INFO: RESOURCES=ALLOCATED | ||
INFO: SCHEDULED AT=Now | ||
INFO: ============================= |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could the subplan be NULL for any other reasons? Are there any more checks needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed this in person this afternoon. If it's null for any other reason, it's unintentional, but checking if the vertex is a leaf or not is an unfortunately tricky/expensive operation to use in something that gets called this much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we can think of a fast way to determine if the vertex is not a leaf that can be a follow-up PR. The only place I can think of where such an error could creep in is here, and the function should exit and cause the graph initialization/re-initialization to fail:
flux-sched/resource/traversers/dfu_impl.cpp
Line 1115 in 1c1f8d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noting for posterity that I tested pruning filter configurations that skip intermediate vertices (e.g.,
cluster:core, node:core
, to skiprack
vertices) and observed that therack
vertex subplan is not null. Apparently the code creates the planners in the intermediate vertices anyway.