tzulitai commented on a change in pull request #91: [FLINK-16927][core]
Fallback to the legacy scheduler.
URL: https://github.com/apache/flink-statefun/pull/91#discussion_r402233081
##########
File path:
statefun-flink/statefun-flink-core/src/main/java/org/apache/flink/statefun/flink/core/StatefulFunctionsConfigValidator.java
##########
@@ -64,6 +66,14 @@ private static void
validateMaxConcurrentCheckpoints(Configuration configuration
}
}
+ private static void validateLegacyScheduler(Configuration configuration) {
+ String configuredScheduler =
configuration.get(JobManagerOptions.SCHEDULER);
+ if (!"legacy".equalsIgnoreCase(configuredScheduler)) {
+ throw new StatefulFunctionsInvalidConfigException(
+ JobManagerOptions.SCHEDULER, "Currently the only support scheduler
is `legacy`");
Review comment:
```suggestion
JobManagerOptions.SCHEDULER, "Currently the only supported
scheduler is `legacy`");
```
----------------------------------------------------------------
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