Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-11755

Remove ensureCompatibility method from TypeSerializer abstraction

    XMLWordPrintableJSON

Details

    • Hide
      The {{ensureCompatibility}} method have been removed from {{TypeSerializer}}. All other related classes in the method signature, such as {{CompatibilityResult}}, have also been removed.
      Please refer to the class-level Javadoc of {{TypeSerializer}} for instructions on how you should update your serializer implementations to adapt to the new serialization compatibility abstractions {{TypeSerializerSnapshot}} and {{TypeSerializerSchemaCompatibility}}.
      Show
      The {{ensureCompatibility}} method have been removed from {{TypeSerializer}}. All other related classes in the method signature, such as {{CompatibilityResult}}, have also been removed. Please refer to the class-level Javadoc of {{TypeSerializer}} for instructions on how you should update your serializer implementations to adapt to the new serialization compatibility abstractions {{TypeSerializerSnapshot}} and {{TypeSerializerSchemaCompatibility}}.

    Description

      With TypeSerializer#canEqual removed in 1.8.0 and the interface already broken for backwards compatibility, it would make sense to also remove the ensureCompatibility method.

      This method was already deprecated for a whole major version (since 1.7.0) already.

      The effect of removing this method completely:

      • All restored legacy TypeSerializerConfigSnapshot's compatibility checks would not be able to go through ensureCompatibility. Instead, they must be redirected to new snapshot classes that implement TypeSerializerSnapshot.
      • If the user already upgraded to the TypeSerializerSnapshot interface in 1.7.x, then this wouldn't be a concern. This only affects users who are still on the TypeSerializerConfigSnapshot interface.

      Attachments

        Issue Links

          Activity

            People

              tzulitai Tzu-Li (Gordon) Tai
              tzulitai Tzu-Li (Gordon) Tai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: