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

Provide more details when type serializers are not compatible

    XMLWordPrintableJSON

Details

    Description

      Currently, when the type serializer is incompatible, you get exceptions like these:

      StateMigrationException("For heap backends, the new namespace serializer must be compatible.");
      StateMigrationException("The new namespace serializer must be compatible.");
      
      StateMigrationException("For heap backends, the new state serializer must not be incompatible.");
      StateMigrationException("The new state serializer cannot be incompatible.")
      
      StateMigrationException("The new key serializer must be compatible.")

      which are not really helpful to the user in debugging serializers.

      Since we already have the old serializer (snapshot) and the new one available, we should add this detail to the exceptions for improved usability.

      Attachments

        Issue Links

          Activity

            People

              nkruber Nico Kruber
              nkruber Nico Kruber
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: