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

AOF Replay using a Background Task at the Replica #783

Merged
merged 20 commits into from
Nov 21, 2024

Conversation

vazois
Copy link
Contributor

@vazois vazois commented Nov 7, 2024

This PR separates AOF enqueue operation from replay. It contains the following

  • Implementation of an IBulkLogConsumer that performs the AOF replay at the replica side.
  • Adds throttling of enqueue operations when AOF replay lags beyond a specific amount (i.e. throttle if TailAddress - ReplicationOffset >ReplicationMaxLag)
  • Ensure re-initialization due to address skipping happens safely while replay consumer is reading from the log.

PS: Fixed a bug related to LRANGE which was incorrectly calling RMWObjectStoreOperationWithOutput instead of ReadObjectStoreOperationWithOutput

@vazois vazois force-pushed the vazois/aof-background-process branch 2 times, most recently from 74ba15b to e0f28f1 Compare November 8, 2024 19:50
@vazois vazois marked this pull request as ready for review November 8, 2024 20:02
@vazois vazois requested a review from badrishc November 8, 2024 20:02
@vazois vazois force-pushed the vazois/aof-background-process branch from e0f28f1 to 6880d53 Compare November 8, 2024 20:11
@TalZaccai TalZaccai self-requested a review November 12, 2024 19:13
@vazois vazois force-pushed the vazois/aof-background-process branch 8 times, most recently from 04f9ca5 to 5f0be76 Compare November 15, 2024 22:21
Copy link
Contributor

@badrishc badrishc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

@vazois vazois force-pushed the vazois/aof-background-process branch 4 times, most recently from a078f1d to b004fc8 Compare November 18, 2024 23:29
@vazois vazois requested a review from badrishc November 19, 2024 19:48
@vazois vazois force-pushed the vazois/aof-background-process branch from b004fc8 to 504cb68 Compare November 21, 2024 19:17
@vazois vazois merged commit b2856c3 into microsoft:main Nov 21, 2024
18 checks passed
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.

2 participants