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

Kube-side changes to #replicas should result in NotReady status #1974

Merged
merged 1 commit into from Sep 11, 2019

Conversation

tombentley
Copy link
Member

Type of change

  • Bugfix

Description

This changes the Topic Operator's handling of Kube-side changes to
KafkaTopic.spec.replicas by ensuring the reconciliation results in a
NotReady status. If the replication factor is changed on the Kafka side
then the reconciliation updates KafkaTopic.spec.replicas and results in
Ready status.

Note that, because the TO doesn't watch the relevent ZK nodes, the
KafkaTopic.spec.replicas only gets updated during a periodic reconciliation.

An integration test is added for the revised semantics.

Because change in replicas has never been supported I have also removed
unused the code which notionally allowed for the TO to perform partition
reassignment, but in fact was never used.

Fix #1847, fix #691

@tombentley tombentley added this to the 0.14.0 milestone Sep 11, 2019
Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

LGTM. But it should be reviewed also by @ppatierno who knows TO much better. What is the relation of this to #1950? Does it superseed it? Should we close it?

@tombentley
Copy link
Member Author

What is the relation of this to #1950? Does it superseed it? Should we close it?

Its supercedes it. I'll close that one once this one has been merged.

This changes the Topic Operator's handling of Kube-side changes to
KafkaTopic.spec.replicas by ensuring the reconciliation results in a
NotReady status. If the replication factor is changed on the Kafka side
then the reconciliation updates KafkaTopic.spec.replicas and results in
Ready status.

Note that, because the TO doesn't watch the relevent ZK nodes, the
KafkaTopic.spec.replicas only gets updated during a periodic reconciliation.

An integration test is added for the revised semantics.

Because change in replicas has never been supported I have also removed
unused the code which notionally allowed for the TO to perform partition
reassignment, but in fact was never used.

Fix strimzi#1847, fix strimzi#691

Signed-off-by: Tom Bentley <tbentley@redhat.com>
Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

LGTM

@tombentley tombentley merged commit 0242d9c into strimzi:master Sep 11, 2019
@tombentley tombentley deleted the to-rf branch September 11, 2019 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants