Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-4558

Use BinaryArrayIdentityResolver by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • binary
    • None

    Description

      Currently if there is no configured BinaryTypeConfiguration.IdentityResolver, we call Object.hashCode().

      This is not consistent with DML, and there is a warning:

      Binary object's type does not have identity resolver explicitly set, therefore BinaryArrayIdentityResolver is used to generate hash codes for its instances, and therefore hash code of this binary object will most likely not match that of its non serialized form. For finer control over identity of this type, please update your BinaryConfiguration accordingly.
      

      In 2.0 we should use BinaryArrayIdentityResolver by default.

      2.0 migration guide has to be updated if needed: https://cwiki.apache.org/confluence/display/IGNITE/Apache+Ignite+2.0+Migration+Guide

      Attachments

        Issue Links

          Activity

            People

              vozerov Vladimir Ozerov
              ptupitsyn Pavel Tupitsyn
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: