zentol commented on a change in pull request #14921: URL: https://github.com/apache/flink/pull/14921#discussion_r574356701
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/SchedulerNGFactoryFactory.java ########## @@ -19,29 +19,32 @@ package org.apache.flink.runtime.dispatcher; +import org.apache.flink.configuration.ClusterOptions; import org.apache.flink.configuration.Configuration; import org.apache.flink.configuration.JobManagerOptions; import org.apache.flink.runtime.scheduler.DefaultSchedulerFactory; import org.apache.flink.runtime.scheduler.SchedulerNGFactory; +import org.apache.flink.runtime.scheduler.declarative.DeclarativeSchedulerFactory; /** Factory for {@link SchedulerNGFactory}. */ public final class SchedulerNGFactoryFactory { - public static final String SCHEDULER_TYPE_NG = "ng"; - private SchedulerNGFactoryFactory() {} public static SchedulerNGFactory createSchedulerNGFactory(final Configuration configuration) { - final String schedulerName = configuration.getString(JobManagerOptions.SCHEDULER); - switch (schedulerName) { - case SCHEDULER_TYPE_NG: + final JobManagerOptions.SchedulerType schedulerType = Review comment: mistake during the rebase ---------------------------------------------------------------- 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: us...@infra.apache.org