Skip to content

Commit 6ae3f41

Browse files
committed
remove unused skip.sample.store.topic.rack.awareness.check config
1 parent 2c84844 commit 6ae3f41

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

cruise-control/src/main/java/com/linkedin/kafka/cruisecontrol/monitor/sampling/KafkaSampleStore.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@
6464
* store topic, default value is set to {@link #DEFAULT_MIN_PARTITION_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS}.</li>
6565
* <li>{@link #MIN_BROKER_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS_CONFIG}: The config for the minimal retention time for Kafka broker sample store
6666
* topic, default value is set to {@link #DEFAULT_MIN_BROKER_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS}.</li>
67-
* <li>{@link #SKIP_SAMPLE_STORE_TOPIC_RACK_AWARENESS_CHECK_CONFIG}: The config to skip checking sample store topics' replica distribution violate
68-
* rack awareness property or not, default value is set to false.</li>
6967
* </ul>
7068
*/
7169
public class KafkaSampleStore extends AbstractKafkaSampleStore {
@@ -102,7 +100,7 @@ public class KafkaSampleStore extends AbstractKafkaSampleStore {
102100
public static final String BROKER_SAMPLE_STORE_TOPIC_PARTITION_COUNT_CONFIG = "broker.sample.store.topic.partition.count";
103101
public static final String MIN_PARTITION_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS_CONFIG = "min.partition.sample.store.topic.retention.time.ms";
104102
public static final String MIN_BROKER_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS_CONFIG = "min.broker.sample.store.topic.retention.time.ms";
105-
public static final String SKIP_SAMPLE_STORE_TOPIC_RACK_AWARENESS_CHECK_CONFIG = "skip.sample.store.topic.rack.awareness.check";
103+
106104
@Override
107105
public void configure(Map<String, ?> config) {
108106
_partitionMetricSampleStoreTopic = KafkaCruiseControlUtils.getRequiredConfig(config, PARTITION_METRIC_SAMPLE_STORE_TOPIC_CONFIG);
@@ -134,8 +132,8 @@ public void configure(Map<String, ?> config) {
134132
String numProcessingThreadsString = (String) config.get(NUM_SAMPLE_LOADING_THREADS_CONFIG);
135133
int numProcessingThreads = numProcessingThreadsString == null || numProcessingThreadsString.isEmpty()
136134
? DEFAULT_NUM_SAMPLE_LOADING_THREADS : Integer.parseInt(numProcessingThreadsString);
137-
String skipSampleStoreTopicRackAwarenessCheckString = (String) config.get(SKIP_SAMPLE_STORE_TOPIC_RACK_AWARENESS_CHECK_CONFIG);
138-
_skipSampleStoreTopicRackAwarenessCheck = Boolean.parseBoolean(skipSampleStoreTopicRackAwarenessCheckString);
135+
136+
139137
_metricProcessorExecutor = Executors.newFixedThreadPool(numProcessingThreads);
140138
_consumers = new ArrayList<>(numProcessingThreads);
141139
for (int i = 0; i < numProcessingThreads; i++) {

docs/wiki/User Guide/Configurations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ We are still trying to improve cruise control. And following are some configurat
281281
| broker.sample.store.topic.partition.count | Integer | N | 32 | The config for the number of partition for Kafka broker sample store topic |
282282
| min.partition.sample.store.topic.retention.time.ms | Integer | N | 3600000 | The config for the minimal retention time for Kafka partition sample store topic |
283283
| min.broker.sample.store.topic.retention.time.ms | Integer | N | 3600000 | The config for the minimal retention time for Kafka broker sample store topic |
284-
| skip.sample.store.topic.rack.awareness.check | Boolean | N | false | The config to skip rack awareness sanity check for sample store topics |
284+
|
285285

286286
### KafkaPartitionMetricSampleOnExecutionStore configurations
287287
| Name | Type | Required? | Default Value | Description |

0 commit comments

Comments
 (0)