JingsongLi commented on pull request #18412:
URL: https://github.com/apache/flink/pull/18412#issuecomment-1018210567


   Thanks @fapaul for the review, I've rethought it and it's probably not a 
good idea either way.
   - approach 1: `SinkWriter` implements `MetadataPublisher`, actually, 
`subscribe` method should be similar to `open`, before other calls. Otherwise, 
there are thread safety issues. But the thing is, `SinkWriter` dose not have 
`open`. It is opened in `Sink.createWriter`.
   - approach 2: `Sink` implements `MetadataPublisher`, the question is when to 
call `subscribe`? On the client side or the server side? What about the 
serialization call on the client side, does the `Consumer` still work properly 
after serialization?


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

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to