Skip to content

Commit 326d60d

Browse files
committed
Force set isSchemaValidationEnforced=false.
1 parent 9d803d8 commit 326d60d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

test-conf/standalone-ssl.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ brokerShutdownTimeoutMs=3000
5050
# Enable backlog quota check. Enforces action on topic when the quota is reached
5151
backlogQuotaCheckEnabled=true
5252

53+
# Disable schema validation: If a producer doesn’t carry a schema, the producer is allowed to connect to the topic and produce data.
54+
isSchemaValidationEnforced=false
55+
5356
# How often to check for topics that have reached the quota
5457
backlogQuotaCheckIntervalInSeconds=60
5558

tests/DeadLetterQueueTest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ TEST(DeadLetterQueueTest, testAutoSchema) {
4646

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

5151
auto dlqPolicy = DeadLetterPolicyBuilder()
5252
.maxRedeliverCount(3)

0 commit comments

Comments
 (0)