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

User code ClassLoader not set before calling ProcessingTimeCallback

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4.0, 1.5.0
    • 1.6.0
    • None

    Description

      The user code ClassLoader is not set as the context ClassLoader for the thread invoking ProcessingTimeCallback#onProcessingTime(long timestamp):
      https://github.com/apache/flink/blob/84a07a34ac22af14f2dd0319447ca5f45de6d0bb/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java#L222

      This is problematic, for example, if user code dynamically loads classes in ProcessFunction#onTimer(long timestamp, OnTimerContext ctx, Collector<O> out) using the current thread's context ClassLoader (also see FLINK-8005).

      Attachments

        Issue Links

          Activity

            People

              yanghua vinoyang
              gjy Gary Yao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: