Skip to content

Commit

Permalink
Fix PartitionSizeAnomalyFinder, to be able to handle custom SELF_HEAL…
Browse files Browse the repository at this point in the history
…ING_PARTITION_SIZE_THRESHOLD_MB values (#2212)
  • Loading branch information
k0b3rIT authored Jan 10, 2025
1 parent 6b5fe9e commit 1af2863
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ public void configure(Map<String, ?> configs) {
String topicExcludedFromCheck = (String) configs.get(TOPIC_EXCLUDED_FROM_PARTITION_SIZE_CHECK);
_topicExcludedFromCheck = Pattern.compile(topicExcludedFromCheck == null ? DEFAULT_TOPIC_EXCLUDED_FROM_PARTITION_SIZE_CHECK
: topicExcludedFromCheck);
Integer partitionSizeThreshold = (Integer) configs.get(SELF_HEALING_PARTITION_SIZE_THRESHOLD_MB_CONFIG);
String partitionSizeThreshold = (String) configs.get(SELF_HEALING_PARTITION_SIZE_THRESHOLD_MB_CONFIG);
_partitionSizeThresholdInMb = partitionSizeThreshold == null ? DEFAULT_SELF_HEALING_PARTITION_SIZE_THRESHOLD_MB
: partitionSizeThreshold;
: Integer.parseInt(partitionSizeThreshold);
String topicPartitionSizeAnomalyClass = (String) configs.get(TOPIC_PARTITION_SIZE_ANOMALY_CLASS_CONFIG);
if (topicPartitionSizeAnomalyClass == null) {
_topicPartitionSizeAnomalyClass = DEFAULT_TOPIC_PARTITION_SIZE_ANOMALY_CLASS;
Expand Down

0 comments on commit 1af2863

Please sign in to comment.