Skip to content

Commit

Permalink
Remove unused skip.sample.store.topic.rack.awareness.check config (#1572
Browse files Browse the repository at this point in the history
)
  • Loading branch information
CalvinPVIII authored May 22, 2021
1 parent 677095f commit cbe0989
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@
* store topic, default value is set to {@link #DEFAULT_MIN_PARTITION_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS}.</li>
* <li>{@link #MIN_BROKER_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS_CONFIG}: The config for the minimal retention time for Kafka broker sample store
* topic, default value is set to {@link #DEFAULT_MIN_BROKER_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS}.</li>
* <li>{@link #SKIP_SAMPLE_STORE_TOPIC_RACK_AWARENESS_CHECK_CONFIG}: The config to skip checking sample store topics' replica distribution violate
* rack awareness property or not, default value is set to false.</li>
* </ul>
*/
public class KafkaSampleStore extends AbstractKafkaSampleStore {
Expand Down Expand Up @@ -102,7 +100,7 @@ public class KafkaSampleStore extends AbstractKafkaSampleStore {
public static final String BROKER_SAMPLE_STORE_TOPIC_PARTITION_COUNT_CONFIG = "broker.sample.store.topic.partition.count";
public static final String MIN_PARTITION_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS_CONFIG = "min.partition.sample.store.topic.retention.time.ms";
public static final String MIN_BROKER_SAMPLE_STORE_TOPIC_RETENTION_TIME_MS_CONFIG = "min.broker.sample.store.topic.retention.time.ms";
public static final String SKIP_SAMPLE_STORE_TOPIC_RACK_AWARENESS_CHECK_CONFIG = "skip.sample.store.topic.rack.awareness.check";

@Override
public void configure(Map<String, ?> config) {
_partitionMetricSampleStoreTopic = KafkaCruiseControlUtils.getRequiredConfig(config, PARTITION_METRIC_SAMPLE_STORE_TOPIC_CONFIG);
Expand Down Expand Up @@ -134,8 +132,8 @@ public void configure(Map<String, ?> config) {
String numProcessingThreadsString = (String) config.get(NUM_SAMPLE_LOADING_THREADS_CONFIG);
int numProcessingThreads = numProcessingThreadsString == null || numProcessingThreadsString.isEmpty()
? DEFAULT_NUM_SAMPLE_LOADING_THREADS : Integer.parseInt(numProcessingThreadsString);
String skipSampleStoreTopicRackAwarenessCheckString = (String) config.get(SKIP_SAMPLE_STORE_TOPIC_RACK_AWARENESS_CHECK_CONFIG);
_skipSampleStoreTopicRackAwarenessCheck = Boolean.parseBoolean(skipSampleStoreTopicRackAwarenessCheckString);


_metricProcessorExecutor = Executors.newFixedThreadPool(numProcessingThreads);
_consumers = new ArrayList<>(numProcessingThreads);
for (int i = 0; i < numProcessingThreads; i++) {
Expand Down
2 changes: 1 addition & 1 deletion docs/wiki/User Guide/Configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ We are still trying to improve cruise control. And following are some configurat
| broker.sample.store.topic.partition.count | Integer | N | 32 | The config for the number of partition for Kafka broker sample store topic |
| min.partition.sample.store.topic.retention.time.ms | Integer | N | 3600000 | The config for the minimal retention time for Kafka partition sample store topic |
| min.broker.sample.store.topic.retention.time.ms | Integer | N | 3600000 | The config for the minimal retention time for Kafka broker sample store topic |
| skip.sample.store.topic.rack.awareness.check | Boolean | N | false | The config to skip rack awareness sanity check for sample store topics |
|

### KafkaPartitionMetricSampleOnExecutionStore configurations
| Name | Type | Required? | Default Value | Description |
Expand Down

0 comments on commit cbe0989

Please sign in to comment.