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

[JENKINS-74777] Improve locking around jenkins.branch.MultiBranchProject#getProjectFactory #494

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

basil
Copy link
Member

@basil basil commented Nov 6, 2024

Problem

See JENKINS-74777.

Solution

As described in the above ticket, use double-checked locking.

Implementation

As in this page.

Testing done

mvn clean verify

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@basil basil added the internal label Nov 6, 2024
@basil basil requested a review from a team as a code owner November 6, 2024 17:27
@basil basil merged commit 4ba3da2 into jenkinsci:master Nov 6, 2024
17 checks passed
@jglick
Copy link
Member

jglick commented Nov 6, 2024

Is there a reason this was marked internal rather than enhancement (or even bug, judging by the linked issues)? CC @dwnusbaum

@basil
Copy link
Member Author

basil commented Nov 6, 2024

I marked this as an internal improvement since I did not verify effectiveness in context (i.e., in the contended environment).

@basil basil deleted the JENKINS-74777 branch November 6, 2024 20:14
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.

3 participants