-
Notifications
You must be signed in to change notification settings - Fork 115
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
Julie removes Placement Contstraints #501
Comments
Thanks a lot for your report @Fobhep as always very much appreciated it. My current way of thinking is to introduce something like https://github.com/kafka-ops/julie/blob/master/src/main/java/com/purbon/kafka/topology/Constants.java#L6 but for configs. In your case, you have this config introduced automatically either the cluster or an external tool. Which case is yours? Thanks a lot for your continous help in the project. |
question, why not manage placement constraints with JulieOps, ---
context: "o"
projects:
- name: "f"
consumers:
- principal: "User:NewApp2"
topics:
- name: "t"
config:
confluent.placement.constraints: "{\"version\":1,\"replicas\":[{\"count\":1,\"constraints\":{\"rack\":\"rack-1\"}},{\"count\":1,\"constraints\":{\"rack\":\"rack-2\"}}],\"observers\":[]}" $ docker exec kafka kafka-topics --bootstrap-server kafka:29092 \ 2.7.0
--describe --topic o.f.t
Topic: o.f.t TopicId: dJImanTbSd2sbUjLVDMoVA PartitionCount: 1 ReplicationFactor: 2 Configs: confluent.placement.constraints={"version":1,"replicas":[{"count":1,"constraints":{"rack":"rack-1"}},{"count":1,"constraints":{"rack":"rack-2"}}],"observers":[]}
Topic: o.f.t Partition: 0 Leader: 1 Replicas: 1,2 Isr: 1,2 Offline: do you see a limitation for this operationally? I understand and tested when the config is there, no problem with being deleted. What do you think? removing the label bug for now until we're clear about the reason and causes behind the issue. |
related to #241 |
Describe the bug
Boker has a default placement constraint for new topics.
Julie-Ops respects that when deploying a new "blank" topic, but removes it when run again.
To Reproduce
Deploy this descriptor:
and check config with kafka-topics:
Rerun julie - log indicates that config is going to be deleted:
Checking with kafka-topics again confirms that config was deleted:
Expected behavior
Julie should never delete config that is set per default from broker side!
Runtime (please complete the following information):
The text was updated successfully, but these errors were encountered: