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

Closing StreamingFileSink can cause NPE

    XMLWordPrintableJSON

Details

    Description

      Description
      If the sink is closed before it's state is initialized, an NPE is thrown.

      Stacktrace

      java.lang.NullPointerException
      	at org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.close(StreamingFileSink.java:378)
      	at org.apache.flink.api.common.functions.util.FunctionUtils.closeFunction(FunctionUtils.java:43)
      	at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.dispose(AbstractUdfStreamOperator.java:117)
      	at org.apache.flink.streaming.runtime.tasks.StreamTask.disposeAllOperators(StreamTask.java:477)
      	at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:378)
      	at org.apache.flink.runtime.taskmanager.Task.run(Task.java:704)
      	at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        Issue Links

          Activity

            People

              gjy Gary Yao
              gjy Gary Yao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: