You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Jiayi Liao (Jira)" <ji...@apache.org> on 2020/03/14 14:46:00 UTC

[jira] [Created] (FLINK-16597) tryCleanupOnError should happen before close

Jiayi Liao created FLINK-16597:
----------------------------------

             Summary: tryCleanupOnError should happen before close
                 Key: FLINK-16597
                 URL: https://issues.apache.org/jira/browse/FLINK-16597
             Project: Flink
          Issue Type: Improvement
          Components: Runtime / Task
    Affects Versions: 1.10.0
            Reporter: Jiayi Liao


If {{DataSinkTask}} fails or throws an exception, the {{OutputFormat}} will call {{tryCleanupOnError}} before {{close}}. But the calling order is reverse when {{DataSinkTask}} is cancelled, which doesn't make much sense that we can still clean the output format after it's closed.

I'm not very sure if this is a bug. But this does mislead our developers when implementing the {{OutputFormat}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)