GitHub user robshep added a comment to the discussion: Cannot parse <null>
schema
Thank you,
I'm afraid I don't know how to get the schema compatibility policy of a topic -
please can you advise. I don't see a cli command to show this)
On the few occasions this has happened, it typically works OK after restarting
the application.
On once occasion it has failed to recover so I used a fresh broker cluster.
(in testing environment so no data lost)
You can see in the original post the NULL schema that is returned as a symptom
of this problem,
whereas below is a proper one as logged upon connection.
```2020-11-06 11:15:03,080 [pool-3-thread-1] INFO
o.a.p.client.impl.schema.AvroSchema - Load schema reader for version(0), schema
is :
{"type":"record","name":"IngressMessageV1","namespace":"io.myapp.shared.pl","fields":[{"name":"attributes","type":["null",{"type":"map","values":"string"}],"default":null},{"name":"timestamp","type":"long"},{"name":"rawMessage","type":["null",{"type":"bytes","java-class":"[B"}],"default":null}]},
schemaInfo: {
"name": "myorg/myapp/ingress",
"schema": {
"type": "record",
"name": "IngressMessageV1",
"namespace": "io.myapp.shared.pl",
"fields": [
{
"name": "attributes",
"type": [
"null",
{
"type": "map",
"values": "string"
}
]
},
{
"name": "timestamp",
"type": "long"
},
{
"name": "rawMessage",
"type": [
"null",
{
"type": "bytes",
"java-class": "[B"
}
]
}
]
},
"type": "AVRO",
"properties": {
"__alwaysAllowNull": "true",
"__jsr310ConversionEnabled": "false"
}
}```
GitHub link:
https://github.com/apache/pulsar/discussions/18948#discussioncomment-4414957
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]