This is an automated email from the ASF dual-hosted git repository. zhuzh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
commit 2690fb17ea380d6102e53e2985617bef8e517659 Author: ifndef-SleePy <[email protected]> AuthorDate: Mon Jan 23 00:21:18 2023 +0800 [FLINK-30755][api] Introduce SupportsConcurrentExecutionAttempts interface --- .../SupportsConcurrentExecutionAttempts.java | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/flink-core/src/main/java/org/apache/flink/api/common/SupportsConcurrentExecutionAttempts.java b/flink-core/src/main/java/org/apache/flink/api/common/SupportsConcurrentExecutionAttempts.java new file mode 100644 index 00000000000..69e0d5e64e0 --- /dev/null +++ b/flink-core/src/main/java/org/apache/flink/api/common/SupportsConcurrentExecutionAttempts.java @@ -0,0 +1,31 @@ +/* + * 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.api.common; + +import org.apache.flink.annotation.PublicEvolving; + +/** + * The interface indicates that it supports multiple attempts executing at the same time. + * + * <p>Currently, the interface is used for speculative execution. If a sink implementation (SinkV2, + * OutputFormat or SinkFunction) inherits this interface, the sink operator would be considered to + * support speculative execution. + */ +@PublicEvolving +public interface SupportsConcurrentExecutionAttempts {}
