dawidwys commented on a change in pull request #7747: [FLINK-11653][DataStream]
Add configuration to enforce custom UID's o…
URL: https://github.com/apache/flink/pull/7747#discussion_r258971311
##########
File path:
flink-core/src/main/java/org/apache/flink/api/common/ExecutionConfig.java
##########
@@ -612,6 +614,41 @@ public boolean hasGenericTypesDisabled() {
return disableGenericTypes;
}
+ /**
+ * Enables the Flink runtime to auto-generated UID's for operators.
+ *
+ * @see #disableAutoGeneratedUIDs()
+ */
+ public void enableAutoGeneratedUIDs() {
+ disableAutoGeneratedUid = false;
+ }
+
+ /**
+ * Disable's auto-generated UID's forces users to manually specify UID's
+ * on their datastreams using {@code DataStream#uid} or {@code
DataStream#setUidHash}.
+ *
+ * <p>It is highly recommended that user's specify UID's before
deploying to
+ * production since they are used to match state in savepoints to
operators
+ * in a job. Because auto-generated ID's are likely to change when
modifying
Review comment:
```suggestion
* in a job. Because auto-generated IDs are likely to change when
modifying
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services