SinBex commented on code in PR #21634:
URL: https://github.com/apache/flink/pull/21634#discussion_r1073294808


##########
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/benchmark/scheduling/StartSchedulingInBatchJobBenchmarkTest.java:
##########
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+
+package org.apache.flink.runtime.scheduler.benchmark.scheduling;
+
+import org.apache.flink.runtime.scheduler.benchmark.JobConfiguration;
+import org.apache.flink.runtime.scheduler.strategy.SchedulingStrategy;
+import org.apache.flink.util.TestLogger;
+
+import org.junit.Test;
+
+/**
+ * The benchmark of starting scheduling in a BATCH job. The related method is 
{@link
+ * SchedulingStrategy#startScheduling}.
+ */
+public class StartSchedulingInBatchJobBenchmarkTest extends TestLogger {
+
+    @Test
+    public void startSchedulingInBatchJobBenchmark() throws Exception {
+        StartSchedulingInBatchJobBenchmark benchmark = new 
StartSchedulingInBatchJobBenchmark();
+        benchmark.setup(JobConfiguration.BATCH_TEST);
+        benchmark.startScheduling();
+        benchmark.teardown();
+    }
+
+    @Test
+    public void startSchedulingInAdaptiveBatchJobBenchmark() throws Exception {
+        StartSchedulingInBatchJobBenchmark benchmark = new 
StartSchedulingInBatchJobBenchmark();
+        benchmark.setup(JobConfiguration.ADAPTIVE_BATCH_TEST);
+        benchmark.startScheduling();
+        benchmark.teardown();
+    }
+
+    @Test
+    public void startSchedulingInAdaptiveBatchHybridJobBenchmark() throws 
Exception {

Review Comment:
   Thanks for your suggestions! Do you mean a batch job in AdaptiveBatch mode 
whose parallelism is user-specified? If so, current test has satisfied the case 
'the downstream has been initialized during upstream scheduling'.



-- 
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]

Reply via email to