Skip to content

Commit

Permalink
Force set isSchemaValidationEnforced=false.
Browse files Browse the repository at this point in the history
  • Loading branch information
shibd committed Dec 9, 2022
1 parent f7ab9e7 commit 808d0dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions test-conf/standalone-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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=false

# How often to check for topics that have reached the quota
backlogQuotaCheckIntervalInSeconds=60

Expand Down
2 changes: 1 addition & 1 deletion tests/DeadLetterQueueTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ TEST(DeadLetterQueueTest, testAutoSchema) {

static const std::string jsonSchema =
R"({"type":"record","name":"cpx","fields":[{"name":"re","type":"double"},{"name":"im","type":"double"}]})";
SchemaInfo schemaInfo(AUTO_PUBLISH, "test-json", jsonSchema);
SchemaInfo schemaInfo(JSON, "test-json", jsonSchema);

auto dlqPolicy = DeadLetterPolicyBuilder()
.maxRedeliverCount(3)
Expand Down

0 comments on commit 808d0dc

Please sign in to comment.