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

CollectSinkFunction does not define serialVersionUID

    XMLWordPrintableJSON

    Details

      Description

      The org.apache.flink.streaming.api.operators.collect.CollectSinkFunction function does not define a serialVersionUID.

      Function objects are serialized using Java Serialization and should define a serialVersionUID.

      If no o serialVersionUID is defined, Java automatically generates IDs to check compatibility of objects during deserialization. However, the generation depends on the environment (JVM, class version, etc.) and can hence lead to java.io.InvalidClassException even if the classes are compatible.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ZhuShang zhuxiaoshang
                Reporter:
                fhueske Fabian Hueske
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: