-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Evolution] Discovery: Schema Evolution #53
Comments
|
When trying to remove an optional field from a data class, we started getting an error. See this discussion for more details: openedx/openedx-events#131 (comment). We'll need some sort of workaround for this. FYI: @rgraber: Feel free to provide any additional details if you wish. Thanks. |
[idea] Add snapshot unit test where we are testing Avro processing for all events. The idea would be to have a script (or something) that would run the schema generation for all event definitions, and would produce a datastructure with the schema as string for each event. Then, when testing the Avro serialization/deserialization process, we'd also compare against this snapshot. If the snapshot is changing in a known way for a known reason, then the snapshot could simply be updated. If not, we caught some undesired change, which may or may not be related to an unexpected schema evolution. Note that the comments for that test should also direct users back to this ticket while discovery still has not been completed. |
Important: It is possible we should implement #53 (comment) to protect against unexpected schema evolution, before completing this larger effort to ensure it can be done safely.
Note: Although this work is important, it is being deferred until we have the problem of having events to evolve. Our use of a schema registry enables this work, but this ticket is for getting into the nuts and bolts of proper configuration, processes, testing, docs, etc. to make this all work.
The following are a list of questions around best practices for Schema Evolution.
A/C
Open Questions:
To be confirmed: Confluent’s Schema Registry will not necessarily tell you or warn if you change the event schema for a topic. It will just evolve the schema and move on. This opens the possibility of error if someone accidentally updates a schema on the producing side without a corresponding update on the consumer side.
Note: This ticket was copied/moved from original private ticket: https://2u-internal.atlassian.net/browse/ARCHBOM-2013.
The text was updated successfully, but these errors were encountered: