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_r258971541
 
 

 ##########
 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
+        * a job, specifying custom ID's allow an application to evolve overtime
 
 Review comment:
   ```suggestion
         * a job, specifying custom IDs allow an application to evolve overtime
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to