azagrebin commented on a change in pull request #9910: [FLINK-14405][runtime] 
Align ResourceProfile/ResourceSpec fields with the new TaskExecutor memory 
setups.
URL: https://github.com/apache/flink/pull/9910#discussion_r335487977
 
 

 ##########
 File path: 
flink-java/src/main/java/org/apache/flink/api/java/operators/DataSink.java
 ##########
 @@ -332,8 +332,12 @@ public ResourceSpec getPreferredResources() {
        private DataSink<T> setResources(ResourceSpec minResources, 
ResourceSpec preferredResources) {
                Preconditions.checkNotNull(minResources, "The min resources 
must be not null.");
 
 Review comment:
   Could we deduplicate this precondition checks in some utility method?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

Reply via email to