$ kurkik kafka sync a.yaml b --all --overwrite --revoke --delete --accept-groups --dry-run Sync a.yaml into b - Apache Kafka, cluster MkU3OEVBNTcwNTJENDM2Qk owns: the whole cluster - the document names no x-kurkik.kafka.server.topicPrefixes; access, as x-kurkik.kafka.server.acl declares it plan: Run one sync per cluster at a time: two at once each plan against a state the other is changing. changes (10) + create customers.updated ~ set orders.created retention.ms 604800000 -> 86400000 [destroys messages] Kafka applies the new bound promptly, so retention.ms going from 604800000 to 86400000 deletes what no longer fits. + grant ALLOW User:analytics READ on TOPIC customers.updated acl (not set) -> ALLOW User:analytics READ on TOPIC customers.updated ~ set every broker message.max.bytes (default) -> 2097152 ~ set group audit consumer.heartbeat.interval.ms (not set) -> 6000 Group audit is not on the cluster: Kafka keeps its settings by id, and the group appears when a consumer joins it, with no committed positions. + register customers.updated-value value (not set) -> customers.updated-value Registers 1 version(s) of customers.updated-value (Protobuf) in order, then sets its compatibility to NONE. + register orders.created-value version 2 (not set) -> v2 Avro Appended to orders.created-value after the versions it has; the registry checks it against them at the subject's compatibility level. - delete legacy.events [destroys messages] Every message in legacy.events is deleted, and every consumer group's position in it. - revoke ALLOW User:stale READ on TOPIC orders.created acl ALLOW User:stale READ on TOPIC orders.created -> (not set) [revokes access] User:stale loses READ on orders.created; a client relying on it fails from then on. - delete group legacy-report [deletes the group's committed positions] legacy-report's 1 committed position(s) go with it; the rollback commits them again. Its own settings stay with Kafka. note: Kafka deletes topics asynchronously: the name can stay taken for a while. A recreation waits up to 60s, and if the create fails after the delete, the rollback holds the topic's definition. note: A cluster with delete.topic.enable=false refuses every deletion; nothing is lost when it does. note: Group sync: Kafka holds no group without members or committed positions. A group the document describes is made by writing its own settings, which Kafka keeps by the group's id; the group itself appears only when a consumer joins it, and starts with no committed positions - its consumers begin where auto.offset.reset says. No position is ever copied from the document's cluster. A group with nothing of its own to write cannot be made at all. With --delete, empty groups the document does not describe are deleted with their positions; the rollback commits those again (Kafka then makes it a classic group until a consumer of another protocol joins). left alone (12) not decided receive_customers.updated groupId Nothing about this can be checked against the system, so sync cannot bring it into line. Operation 'receive_customers.updated' declares no consumer group, so there is nothing a broker could confirm. not decided payments.settled groupId Nothing about this can be checked against the system, so sync cannot bring it into line. Operation 'receive_payments.settled' declares no consumer group, so there is nothing a broker could confirm. not decided send_customers.updated action Nothing about this can be checked against the system, so sync cannot bring it into line. A broker cannot know who publishes to 'customers.updated', so operation 'send_customers.updated' is not checked. not decided orders.created action Nothing about this can be checked against the system, so sync cannot bring it into line. A broker cannot know who publishes to 'orders.created', so operation 'send_orders.created' is not checked. not decided payments.settled action Nothing about this can be checked against the system, so sync cannot bring it into line. A broker cannot know who publishes to 'payments.settled', so operation 'send_payments.settled' is not checked. not held group audit groupId Kafka keeps no group without members or committed positions, so audit itself is not made: its own settings are written (below), and it appears when a consumer joins it, with no committed positions. and 6 differences sync does not act on - servers, messages, undeclared settings; kurkik kafka diff shows them applying needs: DESCRIBE and DESCRIBE_CONFIGS on the topics it reads; CREATE on TOPIC customers.updated (or on the CLUSTER); ALTER_CONFIGS on TOPIC orders.created; ALTER on CLUSTER; ALTER_CONFIGS on CLUSTER; ALTER_CONFIGS on GROUP audit; write access to the schema registry's subject customers.updated-value; write access to the schema registry's subject orders.created-value; DELETE on TOPIC legacy.events; DELETE on GROUP legacy-report 10 changes, 4 destroy rehearsal [?] not attempted grant ALLOW User:analytics READ on TOPIC customers.updated acl (not set) -> ALLOW User:analytics READ on TOPIC customers.updated not rehearsed: Kafka has no validate-only ACL change [?] not attempted register customers.updated-value value (not set) -> customers.updated-value not rehearsed: it has no validate-only form [?] not attempted register orders.created-value version 2 (not set) -> v2 Avro not rehearsed: it has no validate-only form [?] not attempted delete legacy.events not rehearsed: a dry run sends no deletion [?] not attempted revoke ALLOW User:stale READ on TOPIC orders.created acl ALLOW User:stale READ on TOPIC orders.created -> (not set) not rehearsed: Kafka has no validate-only ACL change [?] not attempted delete group legacy-report not rehearsed: it has no validate-only form [+] done create customers.updated [+] done set orders.created retention.ms 604800000 -> 86400000 [+] done set every broker message.max.bytes (default) -> 2097152 [+] done set group audit consumer.heartbeat.interval.ms (not set) -> 6000 The cluster would accept every request it was shown. 6 could not be rehearsed - Kafka has no validate-only deletion or ACL change, and a schema registry no validate-only write. Nothing was changed. exit 2