Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid error message when topic RF change is disabled #9989

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

fvaleri
Copy link
Contributor

@fvaleri fvaleri commented Apr 17, 2024

When RF change is disabled, updating .spec.replicas on a KafkaTopic with 1 partiton and 1 replica fails with the following error:

Replication factor change not supported, but required for partitions
      []

The error message should contain the partition numbers (only 0 in this case), but we have an empty set. This is because we use partitions instead of replicas when computing the partition set.

When RF change is disabled, updating .spec.replicas on a KafkaTopic with 1 partiton and 1 replica fails with the following error:

Replication factor change not supported, but required for partitions
      []

The error message should contain the partition numbers (only 0 in this case), but we have an empty set.
This is because we use partitions instead of replicas when computing the partition set.

Signed-off-by: Federico Valeri <fedevaleri@gmail.com>
@fvaleri fvaleri added this to the 0.41.0 milestone Apr 17, 2024
@scholzj
Copy link
Member

scholzj commented Apr 17, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj scholzj merged commit 0f3d4eb into strimzi:main Apr 18, 2024
21 checks passed
@fvaleri fvaleri deleted the fix-rf-error-msg branch April 24, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants