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

Aerospike sink: resumability #2399

Closed
wants to merge 7 commits into from
Closed

Aerospike sink: resumability #2399

wants to merge 7 commits into from

Conversation

Jesse-Bakker
Copy link
Contributor

This implements resuming for the aerospike sink in the following way:

  • Write the OperationId of every op to the affected record
  • On commit, write the OperationId to a separate set asynchronously

When restarting, the commit OperationId is returned as the last operation id.
This might be behind (because aerospike semantics and because we write it asynchronously),
but we catch that by only applying operations if the record they apply to has
an OperationId that is smaller than the applied operation. This means the
commit OperationId is only there to get a reasonably tight lower bound on the
OperationId, as it's not needed for correctness.

@Jesse-Bakker Jesse-Bakker changed the title Add Aerospike sink resuming Aerospike sink: resumability Feb 19, 2024
Jesse-Bakker and others added 7 commits February 22, 2024 13:51
Some sources that don't have transactions might use a last-update-time
as a txid, and not have commits for every different txid as a result.
Therefore, we're a bit more relaxed about it. Because we filter on
OperationId when writing ops, this should be fine.
@Jesse-Bakker
Copy link
Contributor Author

Superseeded by #2437

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants