Skip to content

Refactoring to return the NodeRef(s) for removed nodes#12055

Closed
ppatierno wants to merge 3 commits intostrimzi:mainfrom
ppatierno:return-removed-node-refs
Closed

Refactoring to return the NodeRef(s) for removed nodes#12055
ppatierno wants to merge 3 commits intostrimzi:mainfrom
ppatierno:return-removed-node-refs

Conversation

@ppatierno
Copy link
Copy Markdown
Member

This PR refactors the removedNodes() method to return NodeRef with all node's details instead of just the list of IDs.
This way it's consistent with the addedNodes() method.
In general, having full node information can be useful (mostly if the removed node is broker, controller, ...) and I found it useful while working on some POC for the dynamic quorum and controllers scaling (because we are going to support removing controllers in the future).
I know this change doesn't help right now but I think having it in the main doesn't hurt. It could come useful for other stuff.

Signed-off-by: Paolo Patierno <ppatierno@live.com>
@ppatierno ppatierno added this to the 0.49.0 milestone Oct 21, 2025
@ppatierno ppatierno requested a review from a team October 21, 2025 12:59
@see-quick see-quick requested a review from a team October 21, 2025 13:44
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.90%. Comparing base (005d1a1) to head (2988d27).

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #12055      +/-   ##
============================================
- Coverage     74.91%   74.90%   -0.02%     
+ Complexity     6454     6452       -2     
============================================
  Files           343      343              
  Lines         24336    24338       +2     
  Branches       3207     3208       +1     
============================================
- Hits          18231    18230       -1     
- Misses         4832     4834       +2     
- Partials       1273     1274       +1     
Files with missing lines Coverage Δ
...o/strimzi/operator/cluster/model/KafkaCluster.java 92.59% <100.00%> (ø)
...cluster/operator/assembly/KafkaClusterCreator.java 94.84% <100.00%> (+0.10%) ⬆️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ppatierno
Copy link
Copy Markdown
Member Author

/azp run regression

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@ppatierno
Copy link
Copy Markdown
Member Author

/gha run pipeline=regression

@github-actions
Copy link
Copy Markdown

⏳ System test verification started: link

The following 6 job(s) will be executed:

  • regression-brokers-and-security-amd64 (oracle-vm-8cpu-32gb-x86-64)
  • regression-operators-amd64 (oracle-vm-8cpu-32gb-x86-64)
  • regression-operands-amd64 (oracle-vm-8cpu-32gb-x86-64)
  • regression-brokers-and-security-arm64 (oracle-vm-8cpu-32gb-arm64)
  • regression-operators-arm64 (oracle-vm-8cpu-32gb-arm64)
  • regression-operands-arm64 (oracle-vm-8cpu-32gb-arm64)

Tests will start after successful build completion.

Signed-off-by: Paolo Patierno <ppatierno@live.com>
Signed-off-by: Paolo Patierno <ppatierno@live.com>
@ppatierno
Copy link
Copy Markdown
Member Author

/azp run regression

@ppatierno
Copy link
Copy Markdown
Member Author

/gha run pipeline=regression

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@github-actions
Copy link
Copy Markdown

⏳ System test verification started: link

The following 6 job(s) will be executed:

  • regression-brokers-and-security-amd64 (oracle-vm-8cpu-32gb-x86-64)
  • regression-operators-amd64 (oracle-vm-8cpu-32gb-x86-64)
  • regression-operands-amd64 (oracle-vm-8cpu-32gb-x86-64)
  • regression-brokers-and-security-arm64 (oracle-vm-8cpu-32gb-arm64)
  • regression-operators-arm64 (oracle-vm-8cpu-32gb-arm64)
  • regression-operands-arm64 (oracle-vm-8cpu-32gb-arm64)

Tests will start after successful build completion.

@github-actions
Copy link
Copy Markdown

🎉 System test verification passed: link

@ppatierno ppatierno closed this Oct 21, 2025
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.

3 participants