Class DispatcherResourceCleanerFactory

java.lang.Object
org.apache.flink.runtime.dispatcher.cleanup.DispatcherResourceCleanerFactory
All Implemented Interfaces:
ResourceCleanerFactory

public class DispatcherResourceCleanerFactory extends Object implements ResourceCleanerFactory
DispatcherResourceCleanerFactory instantiates ResourceCleaner instances that clean cleanable resources from the Dispatcher.

We need to handle the JobManagerRunnerRegistry differently due to a dependency between closing the JobManagerRunner and the HighAvailabilityServices. This is fixed in FLINK-24038 using a feature flag to enable/disable single leader election for all the JobManager components. We can remove the priority cleanup logic after removing the per-component leader election.