You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Dawid Wysakowicz (Jira)" <ji...@apache.org> on 2021/10/12 13:39:00 UTC

[jira] [Created] (FLINK-24515) MailboxExecutor#submit swallows exceptions

Dawid Wysakowicz created FLINK-24515:
----------------------------------------

             Summary: MailboxExecutor#submit swallows exceptions
                 Key: FLINK-24515
                 URL: https://issues.apache.org/jira/browse/FLINK-24515
             Project: Flink
          Issue Type: Bug
          Components: Runtime / Task
    Affects Versions: 1.13.2, 1.12.5, 1.14.0
            Reporter: Dawid Wysakowicz
            Assignee: Dawid Wysakowicz
             Fix For: 1.12.6, 1.13.3, 1.15.0, 1.14.1


If a {{RunnableWithException}}/{{Callable}} is submitted via the {{MailboxExecutor#submit}} any exceptions thrown from it will be swallowed.

It is caused by the {{FutureTaskWithException}} implementation. The {{FutureTask#run}} does not throw an exception, but it sets it as its internal state. The exception will be thrown only when {{FutureTask#get()}} is called.



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