Github user greghogan commented on a diff in the pull request:
https://github.com/apache/flink/pull/4068#discussion_r120427634
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/broadcast/BroadcastVariableManager.java
---
@@ -18,34 +18,42 @@
package org.apache.flink.runtime.broadcast;
-import java.io.IOException;
-import java.util.Map;
-import java.util.concurrent.ConcurrentHashMap;
-
import org.apache.flink.api.common.typeutils.TypeSerializerFactory;
import org.apache.flink.runtime.io.network.api.reader.MutableReader;
import org.apache.flink.runtime.operators.BatchTask;
+import java.io.IOException;
+import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
+
+/**
+ * The BroadcastVariableManager is used to manage the materialization of
broadcast variables. References to materialized
+ * broadcast variables are cached and shared between parallel subtasks. A
reference count is maintained to track whether
+ * a the materialization may be cleaned up.
+ */
public class BroadcastVariableManager {
-
+
private final ConcurrentHashMap<BroadcastVariableKey,
BroadcastVariableMaterialization<?, ?>> variables =
new
ConcurrentHashMap<BroadcastVariableKey, BroadcastVariableMaterialization<?,
?>>(16);
-
+
//
--------------------------------------------------------------------------------------------
-
+
+ /**
+ * Materializes the broadcast variable for the given name, scoped to
the given task and it's iteration superstep. An
--- End diff --
`it's` -> `its`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---