Skip to content

Topology: check that node groups/wildcards are non-empty (#527) #536

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

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

thiell
Copy link
Collaborator

@thiell thiell commented Sep 19, 2023

Router and destination node sets defined in topology.conf may use NodeSet groups and wildcards but those have to resolve to non-empty node sets when we build the tree.

Add checks for this in the code and add a note to the documentation.

Fixes #527.

@thiell thiell self-assigned this Sep 19, 2023
@@ -456,7 +456,17 @@ def _build_graph(self):
"""
self.graph = TopologyGraph()
for src, dst in self._topology:
self.graph.add_route(NodeSet(src), NodeSet(dst))
# GH#527: router and destination node sets may use NodeSet groups
# but they have to resolve to something when we build the graph!
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm wondering if this is really a big deal. Couldn't we just ignore those routes? If one of src or dst is empty, just don't add_route() ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Great point. It might be more flexible to just ignore such route, I will change that, thanks!

Router and destination node sets defined in topology.conf may use
NodeSet groups and wildcards but any route definition with an
empty node set when we build the tree will be ignored.

Add checks for this in the code and add a note to the documentation.

Fixes cea-hpc#527.
@thiell thiell force-pushed the b192_topology_deadlock branch from 15292b8 to 4b6f944 Compare September 19, 2023 23:04
@degremont degremont added this to the 1.9.2 milestone Sep 20, 2023
@thiell thiell added this pull request to the merge queue Sep 20, 2023
Merged via the queue into cea-hpc:master with commit 2125ae7 Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"topology.conf" leads to high CPU usage and memory not being released
2 participants