-
Notifications
You must be signed in to change notification settings - Fork 59
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
Schema gets updated with every message produce #22
Comments
Any update on this? |
@mostafa Any produce code example from the repo can be used to reproduce this. It has been few months now, but I think it is an issue with goavro lib. we noticed that xk6-kafka is posting a new schema when called with produceWithConfiguration. Looks like it’s because they’re stripping out some of the java specific types and before posting the schema to the registry (which I guess they need to do, to get an ID). Line 59 in 57dfc78
If you look at line 54 and 56, goavro’s codec is turning the schema into and object, then making it into a string again on line 56. |
@ssam5532 our work around is to setup wiremock and use it as schema registry proxy. It is another dependency and far from ideal solution but allowed us to continue using K6. |
@saad1200 Update: |
Add srclient dependency as a better way to access Schema Registry Combine functions in Avro serdes Change SchemaRegistryConfiguration and BasicAuth to fix issues (breaking change) Validate configuration for all supported (and unsupported) serde functionlity Default serde is now StringSerializer and StringDeserializer Refactor wire format de/encoding Fix bugs, typos and refactor the rest
* Use a proper Schema Registry client to fix issues in #22 * Add srclient dependency as a better way to access Schema Registry * Combine functions in Avro serdes * Change SchemaRegistryConfiguration and BasicAuth to fix issues (breaking change) * Validate configuration for all supported (and unsupported) serde functionality * Default serde is now StringSerializer and StringDeserializer * Refactor wire format de/encoding * Fix bugs and typos and refactor the rest * Refactor basic auth function and move structs to their relevant files * Fix linting errors reported by gosimple (golangci-lint)
@saad1200 @ssam5532 |
@mostafa sorry for the delay. I will block some time next weekend to test the changes. |
* Use a proper Schema Registry client to fix issues in #22 * Add srclient dependency as a better way to access Schema Registry * Combine functions in Avro serdes * Change SchemaRegistryConfiguration and BasicAuth to fix issues (breaking change) * Validate configuration for all supported (and unsupported) serde functionality * Default serde is now StringSerializer and StringDeserializer * Refactor wire format de/encoding * Fix bugs and typos and refactor the rest * Refactor basic auth function and move structs to their relevant files * Fix linting errors reported by gosimple (golangci-lint)
@saad1200 , can you please help me here. , my schema also get updated with each sent message on topic , how you retrieve the schema first and then send same ? |
@kusumkappdirect |
I have notices an issue with produce with configuration with schema and schema serializer. For some reason the defaults (which can be null) are removed from from the server schema as soon as I run the tests.
It seems the goavro lib that is being used does this as part of serialization. The problem is, this schema later is used as in a post request to fitch the schema id from the server. This post request update the server schema in this case. I could not find a way that we provide the schema id to bypass this logic/behavior.
The text was updated successfully, but these errors were encountered: