Closed josephh closed 1 year ago
How can i get some more detail on why this record is considered "Invalid"?
Note to self - just look in the server.log... the config for the record validator is written there (and the hostname for the schema registry should have been localhost
. I had mistakenly copied and pasted the example from https://docs.confluent.io/platform/current/schema-registry/schema-validation.html#prerequisites-and-setting-sr-urls-on-the-brokers). Could the server have warned me about that (maybe it does already somewhere?)? 🤔
[2023-06-22 16:01:46,570] INFO RecordSchemaValidatorConfig values:
confluent.basic.auth.credentials.source =
confluent.basic.auth.user.info = [hidden]
confluent.bearer.auth.credentials.source =
confluent.bearer.auth.token = [hidden]
confluent.key.schema.validation = false
confluent.key.subject.name.strategy = class io.confluent.kafka.serializers.subject.TopicNameStrategy
confluent.missing.id.cache.ttl.sec = 60
confluent.missing.id.query.range = 200
confluent.missing.schema.cache.ttl.sec = 60
confluent.schema.registry.max.cache.size = 10000
confluent.schema.registry.max.retries = 1
confluent.schema.registry.retries.wait.ms = 0
confluent.schema.registry.url = [http://schema-registry:8081]
Check the schema registry logs and confirm the RecordSchemaValidatorConfig
in future!
Environment
Running Confluent locally, version 7.2.0, Java 11.
Steps to reproduce
{ “type”: “record”, “name”: “demoRecord”, “fields”: [ { “name”: “first”, “type”: “int” }, { “name”: “second”, “type”: “string” }]}
). Key-value message successfully publishedabc:{“first”:3, “second”: “foo”}
How can i get some more detail on why this record is considered "Invalid"?