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

Fix /controller znode failure handling during KRaft migration rollback #10058

Merged
merged 4 commits into from
May 6, 2024

Conversation

ppatierno
Copy link
Member

Type of change

  • Bugfix

Description

This PR adds the handling of failures, if any, when the operator deletes the /controller znode during a KRaft migration rollback. The current code, just log a warning and continue which is not right. This PR adds correct handling with failed Future to fail the reconciliation.
There are a lot of file changes on several tests classes, because I had to add a way to mock the ZooKeeper admin provider through the resource supplier.

Checklist

Please go through this checklist and make sure all applicable tasks have been done

  • Make sure all tests pass
  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally

@ppatierno ppatierno added this to the 0.41.0 milestone May 3, 2024
@ppatierno ppatierno requested a review from scholzj May 3, 2024 15:47
@ppatierno
Copy link
Member Author

/azp run migration

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Paolo Patierno <ppatierno@live.com>
Signed-off-by: Paolo Patierno <ppatierno@live.com>
Signed-off-by: Paolo Patierno <ppatierno@live.com>
Signed-off-by: Paolo Patierno <ppatierno@live.com>
@ppatierno ppatierno force-pushed the fix-delete-controller-znode-failure branch from 5045055 to 6adafb8 Compare May 6, 2024 07:41
@ppatierno
Copy link
Member Author

/azp run migration

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj
Copy link
Member

scholzj commented May 6, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj scholzj merged commit 7cc712f into strimzi:main May 6, 2024
23 checks passed
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.

None yet

2 participants