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

Added support for resuming download to existing binlog storage #31

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

percona-ysorokin
Copy link
Collaborator

'binsrv::filesystem_storage' now supports reading the content of the data directory upon initialization, analyzing its entries, compare them with the content of the binlog index file and setting last used binlog name / position as the result.

'binsrv::events::reader_context' class extended with ability to correctly process the stream of binlog events that starts not from the very beginning but from the specified position (binlog name / offset). In this case we expect an artificial RORATE event followed by a pseudo FDE (the one that has next event position equal to 0 and should not be written to the filesystem storage).

'binlog_streaming.binsrv' MTR test case now also resumes streaming binlog events to a file storage directory created at a previous run.

'binsrv::filesystem_storage' now supports reading the content of the data
directory upon initialization, analyzing its entries, compare them with the
content of the binlog index file and setting last used binlog name / position
as the result.

'binsrv::events::reader_context' class extended with ability to correctly
process the stream of binlog events that starts not from the very beginning but
from the specified position (binlog name / offset). In this case we expect an
artificial RORATE event followed by a pseudo FDE (the one that has next event
position equal to 0 and should not be written to the filesystem storage).

'binlog_streaming.binsrv' MTR test case now also resumes streaming binlog
events to a file storage directory created at a previous run.
@percona-ysorokin percona-ysorokin merged commit 84f3db9 into main Feb 1, 2024
5 checks passed
@percona-ysorokin percona-ysorokin deleted the file_storage_resume branch February 1, 2024 01:04
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.

1 participant