Updating artifact with type AVRO always fails
See original GitHub issue++++ USING AMQ STREAMS STORAGE ++++
When we create new artifact with artifactType=AVRO
and then update it, update always fails. I double check it if I’m doing everything right, but the tests that includes updating of schema are failing too.
Created artifact:
{"type":"record","name":"record-name","fields":[{"name":"key1","type":"string"}]}
cURL command:
curl -X PUT -H "Content-type: application/json; artifactType=AVRO" --data '{"type":"record","name":"record-name","fields":[{"name":"key1","type":"string"},{"name":"key2","type":"string"}]}' http://some-url.com/artifacts/example-artifact
Error message:
{"message":"Incompatible artifact: example-artifact [AVRO]","error_code":400}
How to reproduce:
- create some artifact, artifactType = AVRO, with some schema
- try to update it - add new another field to
fields:
, again with artifactType = AVRO
–> This will be problem in every storage - JPA, Infinispan, AMQ Streams …
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Maven: Failed to read artifact descriptor - java - Stack Overflow
This worked for me. The repository section of the pom. xml file should be properly updated and the </id> tag should be the...
Read more >[Avro] Incompatibility with Avro >=1.9.0 · Issue #167 - GitHub
Update ReflectData.createSchema(Type,Map) to always generate this property for records, enums, and fixed schemas whenever Class.forName( ...
Read more >Apicurio Registry REST API - Red Hat Customer Portal
This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include:....
Read more >Problems reading and writing to Avro from SparkSQL on ...
Hi,. The CDAP doesn't provide avro classes at runtime. You always need to have the right version included in your application jar.
Read more >Resolving a bug in KafkaSQL storage for Apicurio Registry
The following error appears when a user attempts to update or create a new artifact: KafkaSQL error in UI. The first time that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this is already fixed.
So if @alesj doesn’t have anything about it, it’s done from my POV