Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure rotation of files based on rotation intervals #684

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Usiel
Copy link

@Usiel Usiel commented Feb 2, 2024

Problem

#329

Solution

By falling back to wallclock time when there is no record (i.e. when the upstream DataWriter calls write() while the buffer is empty) we initiate a rotation of tmp files to committed files if any of the time intervals trigger.

This change implies that we are not guaranteed to produce the same output for the same messages (i.e. replaying a topic). Replaying would, however, require one to delete all committed files and the WAL, as the connector uses those to persist offsets, thus by itself this is not a concern.

By falling back to wallclock time when there is no record (i.e. when the upstream `DataWriter` calls `write()`, when the buffer is empty) we initiate a rotation of tmp files to committed files if any of the time intervals trigger.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant