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

Dependence on SerializationUtils#deserialize() should be avoided

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      There is a problem with `SerializationUtils` from Apache Commons
      Lang. Here is an open issue where the class will throw a
      `ClassNotFoundException` even if the class is in the classpath in a
      multiple-classloader environment:

      https://issues.apache.org/jira/browse/LANG-1049

      			state = (HashMap<String, Serializable>) SerializationUtils.deserialize(bais);
      ./flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/NonKeyedWindowOperator.java
      			state = (HashMap<String, Serializable>) SerializationUtils.deserialize(bais);
      ./flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java
      		return SerializationUtils.deserialize(message);
      ./flink-streaming-java/src/main/java/org/apache/flink/streaming/util/serialization/JavaDefaultStringSchema.java
      		T copied = SerializationUtils.deserialize(SerializationUtils
      ./flink-streaming-java/src/test/java/org/apache/flink/streaming/util/MockOutput.java
      

      We should move away from SerializationUtils.deserialize()

      Attachments

        Activity

          People

            rmetzger Robert Metzger
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: