You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Piotr Nowojski (Jira)" <ji...@apache.org> on 2021/10/12 15:05:00 UTC
[jira] [Commented] (FLINK-24515) MailboxExecutor#submit swallows
exceptions
[ https://issues.apache.org/jira/browse/FLINK-24515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17427752#comment-17427752 ]
Piotr Nowojski commented on FLINK-24515:
----------------------------------------
I think it's intentional "feature" and not a bug, that mimics {{ExecutorService#submit(...)}} interface. I'm not sure, but I think I was even copying this behaviour from some another executor service in Flink? Anyway, for this reason we added {{execute()}} methods with {{RunnableWithException}} (I think it happened in this FLINK-14935 ticket?).
> 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.14.0, 1.12.5, 1.13.2
> Reporter: Dawid Wysakowicz
> Assignee: Dawid Wysakowicz
> Priority: Critical
> Labels: pull-request-available
> 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)