|
64 | 64 | * store topic, default value is set to {@link #DEFAULT_MIN_PARTITION_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS}.</li>
|
65 | 65 | * <li>{@link #MIN_BROKER_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS_CONFIG}: The config for the minimal retention time for Kafka broker sample store
|
66 | 66 | * 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> |
69 | 67 | * </ul>
|
70 | 68 | */
|
71 | 69 | public class KafkaSampleStore extends AbstractKafkaSampleStore {
|
@@ -102,7 +100,7 @@ public class KafkaSampleStore extends AbstractKafkaSampleStore {
|
102 | 100 | public static final String BROKER_SAMPLE_STORE_TOPIC_PARTITION_COUNT_CONFIG = "broker.sample.store.topic.partition.count";
|
103 | 101 | public static final String MIN_PARTITION_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS_CONFIG = "min.partition.sample.store.topic.retention.time.ms";
|
104 | 102 | 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 | + |
106 | 104 | @Override
|
107 | 105 | public void configure(Map<String, ?> config) {
|
108 | 106 | _partitionMetricSampleStoreTopic = KafkaCruiseControlUtils.getRequiredConfig(config, PARTITION_METRIC_SAMPLE_STORE_TOPIC_CONFIG);
|
@@ -134,8 +132,8 @@ public void configure(Map<String, ?> config) {
|
134 | 132 | String numProcessingThreadsString = (String) config.get(NUM_SAMPLE_LOADING_THREADS_CONFIG);
|
135 | 133 | int numProcessingThreads = numProcessingThreadsString == null || numProcessingThreadsString.isEmpty()
|
136 | 134 | ? 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 | + |
139 | 137 | _metricProcessorExecutor = Executors.newFixedThreadPool(numProcessingThreads);
|
140 | 138 | _consumers = new ArrayList<>(numProcessingThreads);
|
141 | 139 | for (int i = 0; i < numProcessingThreads; i++) {
|
|
0 commit comments