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 sequence of actions when new volume is added #762

Merged
merged 2 commits into from Feb 4, 2022
Merged

Fix sequence of actions when new volume is added #762

merged 2 commits into from Feb 4, 2022

Conversation

bartam1
Copy link
Contributor

@bartam1 bartam1 commented Feb 3, 2022

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets fixes #738
License Apache 2.0

What's in this PR?

It fixes the sequence of the actions when volume addition happens.

Why?

CC Task initiated too fast in case of volume addition.
In case of a volume addition, the CC task is initiated before the volume is bounded to the pod. The rebalance indeed happened successfully but on a broker which is not aware of the new volume.

Checklist

  • Implementation tested
  • Error handling code meets the guideline
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)

@bartam1 bartam1 requested a review from a team as a code owner February 3, 2022 12:06
@bartam1 bartam1 changed the title Fix pvc cc rebalance sequence Fix sequence of actions when new volume is added Feb 3, 2022
@bartam1 bartam1 requested a review from stoader February 3, 2022 14:26
Copy link
Member

@stoader stoader left a comment

Choose a reason for hiding this comment

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

Perhaps a comment could be added here: https://github.com/banzaicloud/koperator/blob/master/controllers/kafkacluster_controller.go#L397 mentioning that in case of updates for PersistentVolumeClaims changes to status should never be ignored as when the status of the PVC changed as reconcile must run.

@bartam1 bartam1 merged commit 90fed88 into master Feb 4, 2022
@bartam1 bartam1 deleted the pvcfix branch February 4, 2022 08:09
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.

CC Task initiated too fast in case of volume addition
3 participants