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
[Bug] Changing the replication factor for a topic prints an NPE #1847
Comments
If a user changed the |
I agree ... if something needs to be reverted it should be in the status ... I do not think it necessarily has to be |
The topic is still usable which is what Ready means to me. If someone tries to send to the topic the operation will success. I would stick with Ready but adding a warning message somehow. |
I understand that argument, but I wonder how many users would notice an alternative condition. And while it's true that the topic would be usable it would not have the availability semantics the user had requested, so the user might not consider it ready to receive their data which requires high availability. So I'm inclined to stick with |
Well, I think it can be totally seen from both sides. I’m fine with both
solutions.
…On Wed, 11 Sep 2019 at 09:49, Tom Bentley ***@***.***> wrote:
I understand that argument, but I wonder how many users would notice an
alternative condition. And while it's true that the topic would be
*usable* it would not have the availability semantics the user had
requested, so the user might not consider it ready to receive their data
which requires high availability. So I'm inclined to stick with NotReady
because I think it aligns with user expectations and also keeps thing
simple for them because they only have one condition to check for.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1847?email_source=notifications&email_token=ABLFOR4AXDWPLAFWP2DICCTQJCPHPA5CNFSM4IHE6SD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6NTFOQ#issuecomment-530264762>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABLFOR6LRYMGOZ5MIT7F4Q3QJCPHPANCNFSM4IHE6SDQ>
.
|
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>
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 Signed-off-by: Tom Bentley <tbentley@redhat.com>
Describe the bug
When a topic is created with a replication factor and then you try to change that value, the topic operator prints the following log.
To Reproduce
Deploy the
kafka-topic.yaml
from examples folder and then edit it changingreplicas
from 1 to 3.Expected behavior
We know that changing replicas is not supported but the above log should not be printed at least, just the warning message about the not supported feature.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: