You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though REST call to endpoint /schemas returns corresponding version with each schema entry, in the object ParsedSchema (implemented by AvroSchema) is set to null.
Hunting through the commit history, this seems to be the earliest commit where the AvroSchemaProvider class was created. The version identifier has always been hardcoded to be null for some reason.
If you are using the Schema Registry Client directly, there is a rather trivial workaround in that one can extend AvroSchemaProvider#parseSchemaOrElseThrow and include this information from the fetched io.confluent.kafka.schemaregistry.client.rest.entities.Schema and then pass this to SchemaRegistryClientFactory.newClient.
Even though REST call to endpoint
/schemas
returns corresponding version with each schema entry, in the objectParsedSchema
(implemented byAvroSchema
) is set tonull
.The BUG is in this line of
AvroSchemaProvider
:https://github.com/confluentinc/schema-registry/blob/9e7ab57e7f1d5664bc08f42ad9678c5b68a769d8/client/src/main/java/io/confluent/kafka/schemaregistry/avro/AvroSchemaProvider.java#L55C11-L55C15
It should set the version that comes in
Schema
object:The text was updated successfully, but these errors were encountered: