-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Kafka-Connect scenario, the same schema is updated (PUT) in the registry for each table row #734
Comments
If I'm reading your post correctly (not missing any details) then I think this is expected behavior. The https://studio-ws.apicur.io/sharing/76f236d3-1312-4548-a4d1-400487188c66#operation/createArtifact You'll need to use the |
If this makes sense and you agree then I would suggest we convert this issue into a Feature Request to add such a query param to the |
@EricWittmann Thanks for your reply. I see a series of strange requests are sent to the registry. But aren't these requests triggered by the apircurio-registry-client or the way how its converter uses this client? I haven't looked into the detail to determine why this is happening. In my connector's configuration, I have only the declarative configuration.
I thought the sequence of those requests were created by the apicurio's converter. In that case, shouldn't the behaviour be fixed there so that a series of POST+ifExist are issued? Or the problem is happening in another layer? In addition to this question, when multiple records are read at once from a table, it would make sense to use the same schema (not doing any query to the registry for each record) to create a series of Kafka messages, no? |
maybe , it was because I was using |
@EricWittmann For my original concern, this issue has been resolved. As I commented above, this behavior seems to be the intended behavior of |
Thanks @elakito - I think we have some things to improve in the serdes layer to make things easier to use/understand. That might just be better documentation, or examples. Or perhaps we can bundle up some common use-cases into configuration aliases. I'm not sure yet, but there's a lot of potential for improvement I think! Any suggestions are always welcome - it's good to get the perspective of someone actually trying to get things done. |
I am observing that the registry-client is invoking a PUT /api/artifacts/-value for each record row and updating its version number. I am using version 1.2.3.Final and this behaviour is observed with both apicurio-registry-mem and apicurio-registry-kafka 1.2.3.Final.
I have a test table created with
CREATE TABLE Persons5 ("id" int primary key, LastName varchar(255), FirstName varchar(255));
The HTTP transcription shows the following message exchange.
This results in each Kafka message containing a new schema version number.
The text was updated successfully, but these errors were encountered: