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

Slave nodes get a copy of the template node properties #748

Merged
merged 1 commit into from
Sep 10, 2019

Conversation

pjdarton
Copy link
Member

@pjdarton pjdarton commented Sep 9, 2019

During the review of openstack-cloud-plugin PR 270, concerns were raised about slave nodes sharing the same instance of node properties; the belief is that not all node properties are stateless and some may assume that they're only dealing with a single node.
i.e. we should deep-copy the node properties, not merely pass by reference.

So we came up with code that copied the node properties.

The docker plugin has the same issue; this applies the same fix.

@pjdarton pjdarton added the bug An issue reporting a bug or a PR fixing one. label Sep 9, 2019
@pjdarton pjdarton closed this Sep 10, 2019
@pjdarton pjdarton reopened this Sep 10, 2019
@pjdarton pjdarton merged commit 91d8c74 into jenkinsci:master Sep 10, 2019
@pjdarton pjdarton deleted the copyNodeProperties branch September 10, 2019 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue reporting a bug or a PR fixing one.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant