Skip to content

Commit

Permalink
Fix kafka topic validation
Browse files Browse the repository at this point in the history
  • Loading branch information
aversey committed Dec 10, 2024
1 parent 0282781 commit 46ae27f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions python/hopsworks_common/kafka_topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ def _validate_topic_config(cls, name, num_replicas, num_partitions):
)
)
num_partitions = KAFKA_TOPIC.NUM_PARTITIONS
else:
if num_replicas is not None or num_partitions is not None:
raise ValueError(
"Number of replicas or partitions cannot be changed in existing kafka topics."
)
elif name is None or name == KAFKA_TOPIC.NONE:
num_replicas = None
num_partitions = None
Expand Down

0 comments on commit 46ae27f

Please sign in to comment.