1996fanrui commented on code in PR #27917:
URL: https://github.com/apache/flink/pull/27917#discussion_r3072843033
##########
flink-tests/src/test/java/org/apache/flink/test/checkpointing/UnalignedCheckpointTestBase.java:
##########
@@ -246,9 +251,10 @@ private String retrieveCheckpointIfNeeded(
}
private StreamGraph getStreamGraph(UnalignedSettings settings,
Configuration conf) {
- // a dummy environment used to retrieve the DAG, mini cluster will be
used later
+ // Use getExecutionEnvironment so that TestStreamEnvironment's
randomizeConfiguration
+ // is triggered when the factory is registered (after
miniCluster.before()).
final StreamExecutionEnvironment setupEnv =
- StreamExecutionEnvironment.createLocalEnvironment(conf);
+ StreamExecutionEnvironment.getExecutionEnvironment(conf);
Review Comment:
I checked — the problematic pattern requires both: (1) a shared MiniCluster
registered at class level, AND (2) `createLocalEnvironment` used to build and
execute a job. Grepping for files matching both conditions, only `ClientTest`
qualifies, but it only uses the env to build a `StreamGraph` without calling
`execute()`. So no other test has this issue.
--
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]