zentol commented on code in PR #19680: URL: https://github.com/apache/flink/pull/19680#discussion_r874815346
########## flink-core/src/main/java/org/apache/flink/api/common/io/OutputFormat.java: ########## @@ -71,9 +71,10 @@ * <p>When this method is called, the output format it guaranteed to be opened. * * @param record The records to add to the output. - * @throws IOException Thrown, if the records could not be added to to an I/O problem. + * @throws Exception Thrown, if the records could not be added due to an I/O problem or a + * timeout. */ - void writeRecord(IT record) throws IOException; + void writeRecord(IT record) throws Exception; Review Comment: > OutputFormat is not user facing It is very much user-facing; they can (and do) implement their own formats and use it with existing sinks. So we must revert to throwing an unchecked exception. -- 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