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
Fix deploy of node in group #2872
Fix deploy of node in group #2872
Conversation
The original issue describes the problem that:
The expected behaviour is that only NodeB would get restarted in that case. Can you clarify what this PR does? From your description, it sounds like you have changed it so that neither NodeA or NodeB will get restarted. |
As described in the original issue, NodeB (delay/trigger) is not restarted. |
In the original issue, NodeA is the delay/trigger node that is being restarted when NodeB is added to the same group. The fix you are proposing will ignore any changes of a node's group when doing a If a node changes the group it is in, then it should be restarted with all types of deploy. The reported issues claims that all of the other nodes in the group are also being restarted - and that should not be happening. |
I seem to have misunderstood the request. |
I think I have updated the fix according to your suggestion. |
Indeed, there are some cases when all nodes in a group get re-deployed, even when just changing the group's size. I didn't know if this was the expected behaviour. If have posted my findings on Discourse last week, where this problem arised in a discussion about the inject node. |
In the current implementation, changing the properties of a group is considered indirectly propagate to contained nodes. |
Thanks @HiroyasuNishiyama I think this fix is good for now, but we may need to look again in the future. At the moment, groups do not have any affect on the runtime. In the future, we will allow groups to hold meta-data about the nodes inside the group. Changing the meta-data of a group should mark the contents of the group as dirty and needing redeploying. |
Proposed changes
As described in this issue, changing node's group make the node restarted on deploy regardless of node deployment mode.
This PR tries to prevent nodes that only change groups from restarting.
Checklist
grunt
to verify the unit tests pass