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

[server][controller][vpj] Support TTL repush for A/A + partial update #704

Merged
merged 9 commits into from
Oct 25, 2023

Conversation

sixpluszero
Copy link
Contributor

[server][controller][vpj] Support TTL repush for A/A + partial update

This PR aims to add TTL repush support for Active/Active with partial update enabled case.
TTL repush filters record by looking at the timestamp in the RMD metadata. For A/A only store which should be using value level TS, it will directly compare long value. For A/A + partial update (AAWC) store, it is supposed to be suing field level TS, it will rely on MergeRecordHelper#deleteRecord API to perform a dummy deletion to filter out stale parts (or drop the record if every field is more stale than the threshold).

This PR also did some small code cleanup and refactor of the related functionalities and fixed some JavaDoc.

How was this PR tested?

Existing unit tests and integration tests, will also add new unit test and integration tests.

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

Copy link
Contributor

@majisourav99 majisourav99 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks Jialin

@sixpluszero sixpluszero enabled auto-merge (squash) October 25, 2023 18:38
@sixpluszero sixpluszero merged commit f7291f6 into linkedin:main Oct 25, 2023
77 checks passed
sixpluszero added a commit that referenced this pull request Oct 31, 2023
…that impacts controllerClient#getAllReplicationMetadataSchemas() (#719)

As a side-effect in PR: #704 I changed the Json property in controller class SchemaRoutes and MultiSchemaResponse to try to clean up API naming to make it makes more sense - ID-RMD_VERSION_ID. This leads to breaking changes in controller, it needs controller deployment to release VPJ and it might have break the API JSON serialization/deserialization.
To make it easy to release the new TTL repush AAWC feature, this PR reverts the part of the change, so it no longer requires controller deployment. I will try to make another attempt apart from this PR to gracefully deprecate improper naming of JSON property.
elijahgrimaldi pushed a commit to elijahgrimaldi/venice that referenced this pull request Nov 1, 2023
…that impacts controllerClient#getAllReplicationMetadataSchemas() (linkedin#719)

As a side-effect in PR: linkedin#704 I changed the Json property in controller class SchemaRoutes and MultiSchemaResponse to try to clean up API naming to make it makes more sense - ID-RMD_VERSION_ID. This leads to breaking changes in controller, it needs controller deployment to release VPJ and it might have break the API JSON serialization/deserialization.
To make it easy to release the new TTL repush AAWC feature, this PR reverts the part of the change, so it no longer requires controller deployment. I will try to make another attempt apart from this PR to gracefully deprecate improper naming of JSON property.
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.

3 participants