Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/4911#discussion_r149098417
--- Diff:
flink-core/src/main/java/org/apache/flink/api/common/operators/ResourceSpec.java
---
@@ -61,18 +79,17 @@
/** How many state size in mb are used */
private final int stateSizeInMB;
+ private final Map<String, Resource> extendedResources = new
HashMap<>(1);
--- End diff --
This violates the serializability of `ResourceSpec` if `Resource` itself is
not serializable.
---