Skip to content

Conversation

@vbradnitski
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.60%. Comparing base (5e08d73) to head (b4d5920).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #11509      +/-   ##
============================================
- Coverage     86.60%   86.60%   -0.01%     
  Complexity    19607    19607              
============================================
  Files          2528     2528              
  Lines         66629    66628       -1     
  Branches       5367     5367              
============================================
- Hits          57703    57702       -1     
  Misses         6313     6313              
  Partials       2613     2613              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vbradnitski vbradnitski requested review from Copilot and rymsha and removed request for rymsha October 29, 2025 09:29
@vbradnitski vbradnitski marked this pull request as ready for review October 29, 2025 09:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses a cluster race condition in the patching mechanism by refactoring how patched node version data is tracked and reused. The key change is storing complete NodeVersionData objects instead of just metadata, eliminating an unnecessary and potentially problematic re-fetch operation.

  • Refactored patchedVersions map to store NodeVersionData instead of NodeVersionMetadata
  • Removed redundant node re-fetch operation in patchNodeInBranch that could cause race conditions
  • Renamed nodeVersionMetadata parameter in NodeVersionData record to metadata for consistency

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
NodeVersionData.java Renamed record parameter from nodeVersionMetadata to metadata for brevity
PatchNodeCommand.java Changed patched versions tracking from metadata-only to full node data, eliminating re-fetch
ApplyNodePermissionsCommand.java Updated references to use renamed metadata() accessor method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vbradnitski vbradnitski merged commit ba24979 into master Oct 29, 2025
6 checks passed
@vbradnitski vbradnitski deleted the issue-11503 branch October 29, 2025 15:37
@alansemenov alansemenov linked an issue Nov 3, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cluster race in patching

3 participants