question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
im-kongecommented, May 29, 2020

I think this is already fixed.

0reactions
im-kongecommented, May 29, 2020

So if @alesj doesn’t have anything about it, it’s done from my POV

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found