echauchot commented on PR #19586:
URL: https://github.com/apache/flink/pull/19586#issuecomment-1119360748

   @zentol I added the flush mechanism to all Cassandra output formats and the 
related tests (vastly inspired from `CassandraSinkBaseTest`) in the 3 last 
commits (different ticket). Please note that the existing class 
`CassandraOutputFormatBase` that was previously used as a base class only for 
Tuple and Row outputFormats is now used as a base class for the 3 output 
formats including Pojo. the base class for column based output formats (tuple 
and row) is now a new class called `CassandraColumnarOutputFormatBase`.
   Regarding configuration of the flush I preferred using simple setters to a 
configuration object as there was no builders for the output formats.
   Regarding other modules: I extracted a utility method for semaphore 
management (SinkUtils) because it is used by both sinks and output formats now. 
And I also had to change the exceptions thrown in `OutputFormat` as some 
methods can now throw `TimeoutException` and `InterruptedException` because of 
the flush mechanism.  I think it is ok as this interface is not user facing.
   
   PTAL
   
   CC: @mzuehlke 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to