zhuzhurk opened a new pull request #10043: [FLINK-14439][runtime] Enable 
RestartPipelinedRegionStrategy to leverage JM tracked partition availability in 
DefaultScheduler
URL: https://github.com/apache/flink/pull/10043
 
 
   
   ## What is the purpose of the change
   
   In current region failover when using DefaultScheduler, most of the input 
result partition states are unknown. Even though the failure cause is a 
PartitionException, only one unhealthy partition can be identified.
   
   The may lead to multiple unsuccessful failovers before all the unhealthy but 
needed partitions are identified and their producers are involved in the 
failover as well. (unsuccessful failover here means the recovered tasks get 
failed again soon due to some missing input partitions.)
   
   This PR is to enable failover strategy in DefaultScheduler to leverage JM 
side tracked partition availability for better failover experience.
   
   
   ## Brief change log
   
   - Change FailoverStrategy.Factory#create(FailoverTopology) to 
FailoverStrategy.Factory#create(FailoverTopology, 
ResultPartitionAvailabilityChecker).
   - Add schedulerBase#getResultPartitionAvailabilityChecker which returns 
getExecutionGraph().getResultPartitionAvailabilityChecker()
   - In DefaultScheduler use the resultPartitionAvailabilityChecker from 
SchedulerBase to create the failover strategy from the factory
   
   
   ## Verifying this change
   
   This change is a trivial rework / code cleanup without any test coverage.
   The PR of FLINK-14440 which is based on this one also proves it works.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (yes / **no**)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (yes / **no**)
     - The serializers: (yes / **no** / don't know)
     - The runtime per-record code paths (performance sensitive): (yes / **no** 
/ don't know)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: (**yes** / no / don't know)
     - The S3 file system connector: (yes / **no** / don't know)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes / **no**)
     - If yes, how is the feature documented? (**not applicable** / docs / 
JavaDocs / not documented)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to