You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sending pulsar message with value type Boolean (wrapper class) in java with RSA encryption enabled but unable to read it at consumer side with go client. correct boolean value should be received provided correct decryption keys.
Actual behavior
value is always empty and not sure what will be the right schema type for boolean value.
Steps to reproduce
Here I am writing producer in go (integration test) instead of JAVA.
producer code:
You didn't set a Schema for the producer and use the Value field, the Value field needs a Schema to encode it into Payload([]byte). If the Schema not set, the message you sent will has an empty body. So you can't read the message payload when you consuming messages.
In this condition, you can
Expected behavior
Sending pulsar message with value type Boolean (wrapper class) in java with RSA encryption enabled but unable to read it at consumer side with go client. correct boolean value should be received provided correct decryption keys.
Actual behavior
value is always empty and not sure what will be the right schema type for boolean value.
Steps to reproduce
Here I am writing producer in go (integration test) instead of JAVA.
producer code:
Consumer code:
How to use schematype for BOOLEAN value? I checked the https://github.com/apache/pulsar-client-go/blob/master/pulsar/schema.go but it is unclear for boolean value. any help would be appreciated.
Workaround/solution: Currently I am reading payload directly, checking if it is not nil and then converting it to bool.
System configuration
Pulsar version: 3.0.x
The text was updated successfully, but these errors were encountered: