You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a topic is created outside of ns4kafka, then is imported to ns4kafka with POST /api/namespaces/<namespace>/topics/_/import, this topic config (retention.ms, min.insync.replicas for example) cannot be updated with POST /api/namespaces/<namespace>/topics
Notes:
The issue was found when the topic is created on Confluent Cloud. I don't know yet if it applies for self-hosted kafka clusters.
We have the same issue when we try the delete-records endpoint on imported topics.
To Reproduce
Create a namespace "myNamespace" with owner ACL on topic prefixed by "myNamespace."
On Confluent Cloud, manually create a new topic "myNamespace.myTopic" with the default configurations.
With ns4kafka, import the topics with the endpoint POST /api/namespaces/myNamespace/topics/_/import
With ns4kafka, try to update the topic config with the endpoint POST /api/namespaces/myNamespace/topics and the following body:
The API call failed with 500 Internal Servor Error: Cannot invoke \"String.equals(Object)\" because the return value of \"java.util.Map.get(Object)\" is null
Environment:
Kafkactl distribution and version: not relevant
Ns4Kafka version: v1.14.0
Kafka broker type and version Apache Kafka 3.8 / Confluent Platform 7.8
Steps taken to try and solve the problem
To bypass delete-records, the topic can be deleted then recreated through ns4kafka. But for topic update, I don't think we have any workaround except fixing the bug in ns4kafka directly.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a topic is created outside of ns4kafka, then is imported to ns4kafka with
POST /api/namespaces/<namespace>/topics/_/import
, this topic config (retention.ms, min.insync.replicas for example) cannot be updated withPOST /api/namespaces/<namespace>/topics
Notes:
To Reproduce
POST /api/namespaces/myNamespace/topics/_/import
POST /api/namespaces/myNamespace/topics
and the following body:The API call failed with 500 Internal Servor Error:
Cannot invoke \"String.equals(Object)\" because the return value of \"java.util.Map.get(Object)\" is null
Environment:
Steps taken to try and solve the problem
To bypass delete-records, the topic can be deleted then recreated through ns4kafka. But for topic update, I don't think we have any workaround except fixing the bug in ns4kafka directly.
The text was updated successfully, but these errors were encountered: