[ https://issues.apache.org/jira/browse/FLINK-24515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17427775#comment-17427775 ]
Dawid Wysakowicz commented on FLINK-24515: ------------------------------------------ Hmm, I see. Yeah, I think it actually makes sense. Otherwise if we e.g. cancel the {{Future}}, we will fail the mailbox as well. I guess then, we should not use {{submit}}, but rather {{execute}} for triggering buffer debloat. > 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: Major > 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)