ryerraguntla commented on code in PR #4400:
URL: https://github.com/apache/iggy/pull/4400#discussion_r4179494226


##########
gateways/kafka/src/bridge/iggy_bridge/topics.rs:
##########
@@ -257,6 +257,30 @@ impl IggyBridge {
         }
     }
 
+    /// Deletes the Iggy topic backing `kafka_topic`, resolved through the 
configured
+    /// [`TopicMapping`](crate::bridge::topic_map::TopicMapping).
+    ///
+    /// Deliberately leaves the backing Iggy stream alone, even when this 
delete empties it out:
+    /// `TopicMapping::resolve` sends every *unmapped* Kafka topic to the same 
`default_stream`
+    /// (`ensure_stream_and_topic`'s own doc comment flags the same sharing 
risk for create), so a
+    /// stream this call happens to empty may still be the live home for a 
different Kafka topic a
+    /// moment later - this call has no way to tell the two cases apart, and 
real Kafka itself has
+    /// no analogous container object for a `DeleteTopics` to clean up.
+    ///
+    /// # Errors
+    ///
+    /// Returns [`BridgeError::InvalidKafkaTopicName`] if `kafka_topic` fails 
Kafka's own
+    /// topic-naming rules. Returns [`BridgeError::Timeout`] if a call takes 
longer than
+    /// `REQUEST_TIMEOUT`. Returns [`BridgeError::Iggy`] with 
`StreamNameNotFound`/`TopicNameNotFound`

Review Comment:
   fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to