confluentinc / schema-registry

Confluent Schema Registry for Kafka
https://docs.confluent.io/current/schema-registry/docs/index.html
Other
2.23k stars 1.11k forks source link

Mqtt gives negative value for long value if we send more than 63 #946

Open smkumar84 opened 5 years ago

smkumar84 commented 5 years ago

I'm Sending an Avro message with a timestamp(Int64 - long type) and few data (String type) to streaming-mqtt. I have used the Apache Avro for JSON serialization in iOS. https://github.com/apache/avro

Everything is working fine if suppose I have sent string data type values. But for long(more than 64) value received some negative numbers in server-side. Suppose if we give 63 exactly parsed 63 in server side. Why getting negative values if we send more than 63? Please help to fix this I have searched in online the same issue happened to someone.

https://issues.apache.org/jira/browse/BAHIR-165 (they have used Spark Streaming Connectors) but issue is same .

Thanks you

smkumar84 commented 5 years ago

Please help me to resolve this issue