congbobo184 commented on a change in pull request #6356: Independent schema is 
set for each consumer generated by topic
URL: https://github.com/apache/pulsar/pull/6356#discussion_r385511222
 
 

 ##########
 File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/schema/AutoConsumeSchema.java
 ##########
 @@ -132,6 +132,11 @@ public void configureSchemaInfo(String topicName,
         }
     }
 
+    @Override
+    public Schema<GenericRecord> cloneSchema() {
+        return Schema.AUTO_CONSUME();
 
 Review comment:
   it don't need to copy fields, AutoConsumeSchema represent it can auto 
consume, if you want clone the fields you can clone the true schema in 
AutoConsumeSchema. After all, only its schema is changeable.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to