You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2022/06/10 14:16:46 UTC
[flink] branch release-1.15 updated: [FLINK-27933][rest] OperationResult implements Serializable
This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch release-1.15
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.15 by this push:
new 0cd291ddae6 [FLINK-27933][rest] OperationResult implements Serializable
0cd291ddae6 is described below
commit 0cd291ddae6581784e8d57e34fe3346607cb4f26
Author: Chesnay Schepler <ch...@apache.org>
AuthorDate: Fri Jun 10 12:40:07 2022 +0200
[FLINK-27933][rest] OperationResult implements Serializable
---
.../org/apache/flink/runtime/rest/handler/async/OperationResult.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/async/OperationResult.java b/flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/async/OperationResult.java
index 5fcf545e2f1..79c272a5072 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/async/OperationResult.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/async/OperationResult.java
@@ -20,6 +20,7 @@ package org.apache.flink.runtime.rest.handler.async;
import javax.annotation.Nullable;
+import java.io.Serializable;
import java.util.Objects;
import static org.apache.flink.util.Preconditions.checkNotNull;
@@ -29,7 +30,9 @@ import static org.apache.flink.util.Preconditions.checkNotNull;
* OperationResultStatus}, it contains either the actual result (if completed successfully), or the
* cause of failure (if it failed), or none of the two (if still in progress).
*/
-public class OperationResult<R> {
+public class OperationResult<R> implements Serializable {
+ private static final long serialVersionUID = 1L;
+
private final OperationResultStatus status;
@Nullable private final R result;
@Nullable private final Throwable throwable;