-
Notifications
You must be signed in to change notification settings - Fork 1
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
Adding custom proto serdes #100
base: main
Are you sure you want to change the base?
Conversation
Test Results16 files +1 16 suites +1 29s ⏱️ -1s Results for commit 2a40d95. ± Comparison against base commit 8f5da9e. This pull request removes 5 and adds 6 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
...s/src/main/java/org/hypertrace/core/kafkastreams/framework/serdes/proto/ProtoSerializer.java
Show resolved
Hide resolved
...src/main/java/org/hypertrace/core/kafkastreams/framework/serdes/proto/ProtoDeserializer.java
Show resolved
Hide resolved
...src/main/java/org/hypertrace/core/kafkastreams/framework/serdes/proto/ProtoDeserializer.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/hypertrace/core/kafkastreams/framework/serdes/proto/ProtoDeserializer.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please add a unit similar to Avro SerDe test. Helps to understand how this is used.
- Fix the builds. Some PR builds are failing
- Fix the existing comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Please get it reviewed by @laxmanchekka as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please get a signoff from @avinashkolluru as well. we have quite a few places where it is integrated with schema registry and we are doing it for new code as well.
if we are able to set the default compat level for proto at schema registry to be backward_full then we don't need to add for each proto another hook to update compat. last I heard srikar checked and couldn't find such a flag, may be worth starting a discussion with community.
though schema registry is not required if we take care of proto evolution rightly, if for some reason in some repo we miss that check enablement by CI, then the code will go into dev and produce incompatible messages which has to be restored manually by moving offsets. if schema registry based proto is introduced then it won't produce and throw a runtime check. I'd prefer to have proto via schema registry if we can set default compat level for proto differently from avro
Description
Adding custom proto serdes to avoid schema validations for proto based events as both producer and consumers are
anyways using the same protos to read the message we dont need the schema validation.
Testing
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.
Checklist:
Documentation
Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.