woofyzhao commented on code in PR #6739:
URL: https://github.com/apache/inlong/pull/6739#discussion_r1041697469


##########
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/sink/mq/pulsar/PulsarHandler.java:
##########
@@ -243,11 +248,15 @@ public boolean send(BatchPackProfile event) {
     /**
      * getProducerTopic
      */
-    private String getProducerTopic(String baseTopic) {
+    private String getProducerTopic(String baseTopic, IdTopicConfig config) {
         StringBuilder builder = new StringBuilder();
         if (tenant != null) {
             builder.append(tenant).append("/");
         }
+        String namespace = this.namespace;
+        if (namespace == null) {
+            namespace = config.getParams().get(PulsarHandler.KEY_NAMESPACE);
+        }

Review Comment:
   Not quite the same.  In 104 the namespace is from the cluster config. Here 
it's from idTopic config.



-- 
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