Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-3803

JsonConverter deserialized Struct containing bytes field does not return true for equals()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.10.0.0
    • None
    • connect
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ewencp Ewen Cheslack-Postava
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: