You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ewen Cheslack-Postava (JIRA)" <ji...@apache.org> on 2016/06/07 21:50:21 UTC
[jira] [Created] (KAFKA-3803) JsonConverter deserialized Struct
containing bytes field does not return true for equals()
Ewen Cheslack-Postava created KAFKA-3803:
--------------------------------------------
Summary: JsonConverter deserialized Struct containing bytes field does not return true for equals()
Key: KAFKA-3803
URL: https://issues.apache.org/jira/browse/KAFKA-3803
Project: Kafka
Issue Type: Bug
Affects Versions: 0.10.0.0
Reporter: Ewen Cheslack-Postava
The problem is that byte[] comparisons will return false for equality, so even if the two are effectively equal, Struct.equals will not return true.
It's unclear if this should be fixed or not. Equality wouldn't work for map or array types containing bytes either. However, on possibility is making ByteBuffer the default instead to alleviate this, although then we may end up with asymmetry in equality.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)