-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Pulsar schema doesn't do compatibility check for primitive types #4831
Comments
@congbobo184 please take a look this issue. |
@sijie @congbobo184 I am trying to do 2.4.1 release. How about move this into 2.5.0? |
moved to 2.5.0 |
how we check compatibility for INT8 and INT16? we allow they decode the message for themself or allow INT16 read INT8? any suggestion can give to me ? |
@congbobo184 to keep simple, we only check compatibilities when using same schema type. different schema types are always incompatible. |
|
Describe the bug
Currently Pulsar schema doesn't do compatibility check for primitive types. That says if a consumer connect to a topic with a different schema type. It still can connect and receive messages. Exception is only thrown when retrieving the values from the received messages.
To Reproduce
Steps to reproduce the behavior:
Schema.STRING
Schema.INT32
Expected behavior
The consumer should be rejected when subscribing.
The text was updated successfully, but these errors were encountered: