becketqin commented on pull request #12002:
URL: https://github.com/apache/flink/pull/12002#issuecomment-625634506


   @StephanEwen Thanks for the review. I only have one concern about the second 
comment on `withOperatorCoordinator`.
   
   > We need to attach the provider to the JobGraph in the end, but we can keep 
operator and coordinator together in the StreamTransformation and then attach 
it to the JobVertex from there.
   
   It depends on whether we want to expose the operator coordinator to users or 
not. If we want to expose this to the users, by providing a 
`withOperatorCoordinator` interface, users are able to call 
`DataStream.transform(operator)` to leverage this mechanism. Also conceptually 
it seems more intuitive for the coordinator to be associated with the 
`Operator`, instead of a `StreamTransformation`.


----------------------------------------------------------------
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]


Reply via email to