MINOR: log warning when topology override for cache size is non-zero (#11959)
Since the topology-level cache size config only controls whether we disable the caching layer entirely for that topology, setting it to anything other than 0 has no effect. The actual cache memory is still just split evenly between the threads, and shared by all topologies. It's possible we'll want to change this in the future, but for now we should make sure to log a warning so that users who do try to set this override to some nonzero value are made aware that it doesn't work like this. Also includes some minor refactoring plus a fix for an off-by-one error in #11796 Reviewers: Luke Chen <showuon@gmail.com>, Walker Carlson <wcarlson@confluent.io>, Sagar Rao <sagarmeansocean@gmail.com>
显示
- checkstyle/suppressions.xml 1 个添加, 1 个删除checkstyle/suppressions.xml
- streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java 4 个添加, 3 个删除.../src/main/java/org/apache/kafka/streams/KafkaStreams.java
- streams/src/main/java/org/apache/kafka/streams/StreamsConfig.java 0 个添加, 23 个删除...src/main/java/org/apache/kafka/streams/StreamsConfig.java
- streams/src/main/java/org/apache/kafka/streams/TopologyConfig.java 40 个添加, 22 个删除...rc/main/java/org/apache/kafka/streams/TopologyConfig.java
- streams/src/main/java/org/apache/kafka/streams/internals/StreamsConfigUtils.java 31 个添加, 0 个删除...rg/apache/kafka/streams/internals/StreamsConfigUtils.java
- streams/src/test/java/org/apache/kafka/streams/KafkaStreamsTest.java 25 个添加, 0 个删除.../test/java/org/apache/kafka/streams/KafkaStreamsTest.java
- streams/src/test/java/org/apache/kafka/streams/StreamsConfigTest.java 5 个添加, 4 个删除...test/java/org/apache/kafka/streams/StreamsConfigTest.java
- streams/src/test/java/org/apache/kafka/streams/integration/AdjustStreamThreadCountTest.java 6 个添加, 59 个删除...afka/streams/integration/AdjustStreamThreadCountTest.java
- streams/test-utils/src/main/java/org/apache/kafka/streams/TopologyTestDriver.java 2 个添加, 1 个删除...ain/java/org/apache/kafka/streams/TopologyTestDriver.java
加载中
想要评论请 注册 或 登录