KAFKA-9040 Add --all that includes dynamic and static config#7607
KAFKA-9040 Add --all that includes dynamic and static config#7607hachikuji merged 4 commits intoapache:trunkfrom
Conversation
There was a problem hiding this comment.
Prefer not to refer to static and dynamic since they're specific to the broker configs (topics and quotas are all dynamic).
There was a problem hiding this comment.
Sounds good. I'll remove static and dynamic from the description.
|
Thanks for the PR. Is there a KIP for this? Changes that affect user visible interfaces require a KIP. |
|
Have a look at the Jenkins output and see if you can locate the failure. Not sure if you've made it this far yet, but Kafka is surprisingly easy to test locally, as you really only need to do the following (from top): Term-1: ./bin/zookeeper-server-start.sh config/zookeeper.properties And you should be up and running on localhost:9092. Running gradle test locally is a huge pain, but you can specify a single test via: ./gradlew core:test --tests=kafka.admin.ConfigCommandTest |
|
Thanks @bdbyrne! Looks like the change to |
|
LGTM |
hachikuji
left a comment
There was a problem hiding this comment.
Thanks for the patch. Just had one comment for consideration.
Added unit test: kafka.admin.ConfigCommandTest.testDescribeAllBrokerConfig
|
retest this please |
|
ok to test |
| throw new IllegalArgumentException("Only one of --bootstrap-server or --zookeeper must be specified") | ||
|
|
||
| if (options.has(allOpt) && options.has(zkConnectOpt)) { | ||
| throw new IllegalArgumentException(s"--bootstrap-server must be specified for --all") |
There was a problem hiding this comment.
Since the user may not have seen the 'Only one of --bootstrap-server or --zookeeper' error above, it would be clearer to mention that zkConnectOpt should be dropped while adding '--bootstrap-server'
Conflicts and/or compiler errors due to the fact that we temporarily reverted the commit that removes Scala 2.11 support: * SslAdminIntegrationTest: keep using JAdminClient, take upstream changes otherwise. * ReassignPartitionsClusterTest: keep using JAdminClient, take upstream changes otherwise. * KafkaApis: use `asScala.foreach` instead of `forEach`. # By Ismael Juma (3) and others # Via GitHub * apache-github/trunk: (22 commits) KAFKA-9437; Make the Kafka Protocol Friendlier with L7 Proxies [KIP-559] (apache#7994) KAFKA-9375: Add names to all Connect threads (apache#7901) MINOR: Introduce 2.5-IV0 IBP (apache#8010) KAFKA-8503; Add default api timeout to AdminClient (KIP-533) (apache#8011) Add retries to release.py script (apache#8021) KAFKA-8162: IBM JDK Class not found error when handling SASL (apache#6524) MINOR: Add explicit result type in public defs/vals (apache#7993) KAFKA-9408: Use StandardCharsets.UTF-8 instead of "UTF-8" (apache#7940) KAFKA-9474: Adds 'float64' to the RPC protocol types (apache#8012) KAFKA-9360: Allow disabling MM2 heartbeat and checkpoint emissions (apache#7887) KAFKA-7658: Add KStream#toTable to the Streams DSL (apache#7985) KAFKA-9445: Allow adding changes to allow serving from a specific partition (apache#7984) KAFKA-9422: Track the set of topics a connector is using (KIP-558) (apache#8017) KAFKA-9040; Add --all option to config command (apache#7607) KAFKA-4203: Align broker default for max.message.bytes with Java producer default (apache#4154) KAFKA-9426: Use switch instead of chained if/else in OffsetsForLeaderEpochClient (apache#7959) KAFKA-9405: Use Map.computeIfAbsent where applicable (apache#7937) KAFKA-9026: Use automatic RPC generation in DescribeAcls (apache#7560) MINOR: Remove unused fields in StreamsMetricsImpl (apache#7992) KAFKA-9460: Enable only TLSv1.2 by default and disable other TLS protocol versions (KIP-553) (apache#7998) ...
…mand (apache#7607) Implement --all option for describing all configs (both dynamic and static) as documented in KIP-524 (https://cwiki.apache.org/confluence/display/KAFKA/KIP-524%3A+Allow+users+to+choose+config+source+when+describing+configs. Reviewers: Brian Byrne <bbyrne@confluent.io>, Jason Gustafson <jason@confluent.io>
KAFKA-9040 Implement --all option for describing configs
Added unit test: kafka.admin.ConfigCommandTest.testDescribeAllBrokerConfig
Committer Checklist (excluded from commit message)