Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-25318 Improvement of scheduler and execution for Flink OLAP
  3. FLINK-25055

Support listen and notify mechanism for PartitionRequest

    XMLWordPrintableJSON

Details

    Description

      We submit batch jobs to flink session cluster with eager scheduler for olap. JM deploys subtasks to TaskManager independently, and the downstream subtasks may start before the upstream ones are ready. The downstream subtask sends PartitionRequest to upstream ones, and may receive PartitionNotFoundException from them. Then it will retry to send PartitionRequest after a few ms until timeout.

      The current approach raises two problems. First, there will be too many retry PartitionRequest messages. Each downstream subtask will send PartitionRequest to all its upstream subtasks and the total number of messages will be O(N*N), where N is the parallelism of subtasks. Secondly, the interval between polling retries will increase the delay for upstream and downstream tasks to confirm PartitionRequest.

      We want to support listen and notify mechanism for PartitionRequest when the job needs no failover. Upstream TaskManager will add the PartitionRequest to a listen list with a timeout checker, and notify the request when the task register its partition in the TaskManager.

      nkubicek I noticed that your scenario of using flink is similar to ours. What do you think? And hope to hear from you trohrmann THX

      Attachments

        Activity

          People

            guoyangze Yangze Guo
            zjureel Fang Yong
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: