aloyszhang commented on code in PR #10916:
URL: https://github.com/apache/inlong/pull/10916#discussion_r1734084791
##########
inlong-manager/manager-plugins/base/src/main/java/org/apache/inlong/manager/plugin/flink/FlinkService.java:
##########
@@ -69,13 +70,20 @@ public class FlinkService {
// map Configuration to FlinkClientService
private final Map<Configuration, FlinkClientService> flinkClientServices =
new HashMap<>();
+ private final FlinkParallelismOptimizer flinkParallelismOptimizer;
+
/**
* Constructor of FlinkService.
*/
public FlinkService() throws Exception {
flinkConfig = FlinkUtils.getFlinkConfigFromFile();
parallelism = flinkConfig.getParallelism();
savepointDirectory = flinkConfig.getSavepointDirectory();
+ flinkParallelismOptimizer =
ApplicationContextProvider.getContext().getBean(FlinkParallelismOptimizer.class);
// let
+
// spring
+
// inject
+
// the
+
// bean
Review Comment:
```suggestion
// let spring inject the bean
flinkParallelismOptimizer =
ApplicationContextProvider.getContext().getBean(FlinkParallelismOptimizer.class);
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]