Table of Contents |
---|
Status
Current state: Under DiscussionAccepted
Discussion thread: here
JIRA: KAFKA-4161
Released: 0.10.2.0
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
...
- 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:
...