-
Notifications
You must be signed in to change notification settings - Fork 66
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 a new field to grpc proto file breaks the functionality if client stub is not updated #1572
Adding a new field to grpc proto file breaks the functionality if client stub is not updated #1572
Comments
@stefinie123 can you explain the issue bit more, better if you can provide an example
|
@daneshk Please find my answers below:
|
@BuddhiWathsala can you check this |
I was able to reproduce the issue. However, there is a design concern to discuss here. When there are unknown fields, what Java does is, Java creates an Therefore we should decide on a suitable approach:
@daneshk @stefinie123 WDYT? |
IMO, It is ok to Ignore the unknown field as the recipient doesn't know those fields to retrieve the value. |
Description:
When the grpc proto file is updated by adding a new field it breaks the existing client stubs which uses the the previous proto file definition.
Following error is observed:
Invalid protobuf byte sequence
Steps to reproduce:
Update the proto file by adding a new field to a type definition
Try to execute a client/service stub which was generated earlier
Affected Versions:
Swan lake alpha 1
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered: