You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/12/16 11:46:42 UTC

[GitHub] [pulsar-client-cpp] shibd commented on a diff in pull request #139: [feat] Support Dead Letter Topic.

shibd commented on code in PR #139:
URL: https://github.com/apache/pulsar-client-cpp/pull/139#discussion_r1050664001


##########
test-conf/standalone-ssl.conf:
##########
@@ -50,6 +50,9 @@ brokerShutdownTimeoutMs=3000
 # Enable backlog quota check. Enforces action on topic when the quota is reached
 backlogQuotaCheckEnabled=true
 
+# Disable schema validation: If a producer doesn’t carry a schema, the producer is allowed to connect to the topic and produce data.
+isSchemaValidationEnforced=true
+

Review Comment:
   > IMO, currently we don't need to handle this case. The default value of isSchemaValidationEnforced is false.
   
   I think we need to turn this. We should ensure that the schema still works when `isSchemaValidationEnforced` is true. 
   
   For example, DLQ producers create scenarios that fail (refer: verifying this change[5]), If we set `isSchemaValidationEnforced` to false, then the test passes.
   
   
   > I have an idea that we can add an option to download the latest schema info when creating producers without schema. e.g.
   
   Good point.  I will change #142 to support auto download schema first.
   
   BWT: I'm not going to expose this interface to users, just use it in DLQ for the time being. 



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org