You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Mason Chen <ma...@gmail.com> on 2021/10/21 21:32:27 UTC
SplitEnumeratorContext callAsync() cleanup
Hi all,
I was wondering how to cancel a task that is enqueued by the callAsync()
method, the one that takes in a time interval. For example, the KafkaSource
uses this for topic partition discovery. It would be straightforward if the
API returned the underlying future so that a process can cancel it.
For Kafka, the enumerator shutdown seems to be unclean since it only closes
the admin client and kafka consumer but not the topic partition discovery
task. Furthermore, exceptions from that task will cause job failure and can
potentially happen if the task is still running with the admin client
closed. How can we address this?
Best,
Mason
Re: SplitEnumeratorContext callAsync() cleanup
Posted by Mason Chen <ma...@gmail.com>.
Hi Fabian,
Unfortunately, I don't have the log since I was just testing it out on my
local setup. I can try to reproduce it later in the week.
Best,
Mason
On Mon, Oct 25, 2021 at 8:09 AM Fabian Paul <fa...@ververica.com>
wrote:
> Hi Mason,
>
> Thanks for opening the ticket. Can you also share the log with us when the
> KafkaEnumerator closed before the async call finished?
>
> Best,
> Fabian
Re: SplitEnumeratorContext callAsync() cleanup
Posted by Fabian Paul <fa...@ververica.com>.
Hi Mason,
Thanks for opening the ticket. Can you also share the log with us when the KafkaEnumerator closed before the async call finished?
Best,
Fabian
Re: SplitEnumeratorContext callAsync() cleanup
Posted by Mason Chen <ma...@apple.com>.
Hi Fabian,
Here we are: https://issues.apache.org/jira/browse/FLINK-24622 <https://issues.apache.org/jira/browse/FLINK-24622>
Feel free to modify the description as I lazily copied and pasted our discussion here.
Best,
Mason
> On Oct 22, 2021, at 3:31 AM, Fabian Paul <fa...@ververica.com> wrote:
>
> Hi Mason,
>
> This seems to be a bug with the current KafkaSource and also the unified Sources in general. Can you open a bug ticket in jira? I think the enumerator should take of first joining all the async threads before closing the enumerator.
>
> Best,
> Fabian
Re: SplitEnumeratorContext callAsync() cleanup
Posted by Fabian Paul <fa...@ververica.com>.
Hi Mason,
This seems to be a bug with the current KafkaSource and also the unified Sources in general. Can you open a bug ticket in jira? I think the enumerator should take of first joining all the async threads before closing the enumerator.
Best,
Fabian