leonardBang commented on code in PR #23912: URL: https://github.com/apache/flink/pull/23912#discussion_r1433677957
########## flink-core/src/main/java/org/apache/flink/api/connector/sink2/TwoPhaseCommittingSink.java: ########## @@ -40,17 +37,9 @@ * @param <CommT> The type of the committables. */ @PublicEvolving -public interface TwoPhaseCommittingSink<InputT, CommT> extends Sink<InputT> { - - /** - * Creates a {@link PrecommittingSinkWriter} that creates committables on checkpoint or end of - * input. - * - * @param context the runtime context. - * @return A sink writer for the two-phase commit protocol. - * @throws IOException for any failure during creation. - */ - PrecommittingSinkWriter<InputT, CommT> createWriter(InitContext context) throws IOException; Review Comment: We'd better save the method which is better than `SinkWriter<InputT, CommT> createWriter(InitContext context)` as it return a `PrecommittingSinkWriter` which contains more information than `SinkWriter` -- 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