Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.apache.kafka.common.PartitionInfo;
import org.apache.kafka.common.TopicPartition;
import org.apache.kafka.common.compress.Compression;
import org.apache.kafka.common.config.ConfigException;
import org.apache.kafka.common.header.Header;
import org.apache.kafka.common.metrics.Metrics;
import org.apache.kafka.common.record.TimestampType;
Expand Down Expand Up @@ -1240,7 +1241,7 @@ public PartitionerConfig(boolean enableAdaptivePartitioning, long partitionAvail
this.rack = rack;

if (rackAware && Utils.isBlank(rack)) {
throw new IllegalArgumentException("client.rack must be provided if partitioner.rack.aware is enabled");
throw new ConfigException("client.rack must be provided if partitioner.rack.aware is enabled");
}
}

Expand Down