...
- When checking whether an offset commit is 'due' as per
offset.flush.interval.ms
, any pending commit request from the connector viaSinkTaskContext.requestCommit()
is also taken into consideration. Starting a commit clears any such pending request. - Instead of invoking
SinkTask.flush()
as part of the offset commit process,SinkTask.preCommit()
is invoked and the returned offset state committed. SinkTask.flush()
is invoked directly by the runtime only prior toSinkTask.close()
.
The motivating use-cases are met as follows:
...