You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tr...@apache.org on 2020/07/26 14:13:35 UTC

[flink] branch release-1.11 updated: [FLINK-18710] Make ResourceProfileInfo serializable

This is an automated email from the ASF dual-hosted git repository.

trohrmann pushed a commit to branch release-1.11
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.11 by this push:
     new b86ddff  [FLINK-18710] Make ResourceProfileInfo serializable
b86ddff is described below

commit b86ddff71c71452102f3ee908db6c0ddc23240c4
Author: Till Rohrmann <tr...@apache.org>
AuthorDate: Fri Jul 24 20:40:25 2020 +0200

    [FLINK-18710] Make ResourceProfileInfo serializable
    
    This closes #12991.
---
 .../org/apache/flink/runtime/rest/messages/ResourceProfileInfo.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/ResourceProfileInfo.java b/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/ResourceProfileInfo.java
index 455ae75..b7bcb12 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/ResourceProfileInfo.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/ResourceProfileInfo.java
@@ -24,6 +24,7 @@ import org.apache.flink.runtime.clusterframework.types.ResourceProfile;
 import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonCreator;
 import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonProperty;
 
+import java.io.Serializable;
 import java.util.Collections;
 import java.util.Map;
 import java.util.Objects;
@@ -32,7 +33,9 @@ import java.util.stream.Collectors;
 /**
  * Contains information of a {@link ResourceProfile}.
  */
-public class ResourceProfileInfo implements ResponseBody {
+public class ResourceProfileInfo implements ResponseBody, Serializable {
+
+	private static final long serialVersionUID = 2286586486998901098L;
 
 	public static final String FIELD_NAME_CPU = "cpuCores";