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/06/21 08:41:00 UTC

[jira] [Commented] (FLINK-23041) Change local alignment timeout back to the global time out

    [ https://issues.apache.org/jira/browse/FLINK-23041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17366461#comment-17366461 ] 

Piotr Nowojski commented on FLINK-23041:
----------------------------------------

{quote}
Problematic case is when all CBs are received with long delay because of the back pressure, but they arrive at the same time. Alignment time can be low (milliseconds), while start delay is ~1 minute. In that case checkpoint doesn't timeout to UC and is passing the responsibility to timeout down the stream.
{quote}
I've observed this issue and it was happening surprisingly often. With large enough job it seemed like it was happening for at least one subtask almost always, and then this single subtask was delaying whole checkpoint by a lot.

As we would be changing the semantic of the user facing configuration, I would propose to do the following thing:
* change the semantic of the timeout from local (alignment based) to global (checkpoint barrier creation time based)
* introduce new configuration option {{aligned-checkpoint-timeout}} - this name would better reflect what's happening, and also this name would be more flexible for the future
* deprecate the old {{alignment-timeout}} and use this as a fallback (if {{aligned-checkpoint-timeout}} is not defined, check if user has configured old {{alignment-timeout}}. If so, take the old value and maybe print a warning)

> Change local alignment timeout back to the global time out
> ----------------------------------------------------------
>
>                 Key: FLINK-23041
>                 URL: https://issues.apache.org/jira/browse/FLINK-23041
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Anton Kalashnikov
>            Assignee: Anton Kalashnikov
>            Priority: Major
>
> Local alignment timeouts are very confusing and especially without timeout on the outputs, they can significantly delay timeouting to UC.
> Problematic case is when all CBs are received with long delay because of the back pressure, but they arrive at the same time. Alignment time can be low (milliseconds), while start delay is ~1 minute. In that case checkpoint doesn't timeout to UC and is passing the responsibility to timeout down the stream.
>  
> So it is not so transparant for the user why and when AC switches to UC. As mentioned before, the start delay is not correlated with the alignment timeout because it doesn't take into account time in output buffer. the alignment time is not fully correlated with the alignment timeout because the alignment time doesn't take into account the barrier announcement.
>  
> Based on this, there is the proposal to change the semantic of alignmentTimeout configuration to such meaning:
> *The time between the starting of checkpoint(on the checkpont coordinator) and the time when the checkpoint barrier will be received by task.*
> By this definition, we will have kind of global timeout which says that if the AC isn't finished for alignmentTimeout time it will be switched to UC.



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