sijie commented on a change in pull request #2730: [schema] provide a flag to 
disable/enable schema validation on broker and change default bytes producer to 
use `AUTO_PRODUCE_BYTES`
URL: https://github.com/apache/pulsar/pull/2730#discussion_r222901063
 
 

 ##########
 File path: conf/broker.conf
 ##########
 @@ -517,6 +517,13 @@ exposePublisherStats=true
 # The schema storage implementation used by this broker
 
schemaRegistryStorageClassName=org.apache.pulsar.broker.service.schema.BookkeeperSchemaStorageFactory
 
+# Enforce schema validation on following cases:
+#
+# - if a producer without a schema attempts to produce to a topic with schema, 
the producer will be
+#   failed to connect. PLEASE be carefully on using this, since non-java 
clients don't support schema.
+#   if you enable this setting, it will cause non-java clients failed to 
produce.
+isSchemaValidationEnforced=false
 
 Review comment:
   yes agreed, such api should be controlled at namespace level. the change 
here is more providing a flag for smooth upgrading story. the flag is more for 
the people who operates the whole pulsar cluster, and the namespace level is 
for tenants. to me, namespace level control is a feature to provide fine 
granualarity on management, the flag here is make sure the shema enforcement 
can be enabled in a BC way when people upgrade a pulsar cluster.
   
   does that make sense to you?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to