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][test] Fix checksum calculation bug in Active/Active Partial Update RMD chunking #723

Merged
merged 8 commits into from
Nov 1, 2023

Conversation

sixpluszero
Copy link
Contributor

[server][test] Fix checksum calculation bug in Active/Active Partial Update RMD chunking

This PR fixes repush failure in A/A partial update store

Current checksum calculation will take every PUT message's key, schemaId, value into account. However, RMD chunk as it is also a chunk PUT message and it is calculated in the running checksum, while the expected checksum which iterates the SST file does not contain it (since RMD chunk is put into RMD CF). This is the reason that repush failed on checksum verification.

During the investigation, we also found that default integration test config setup is not correct. It enables PlainTable mode by default and disable checksum verification by default, which is not consistent with current production behavior. This PR fixes the issue.

How was this PR tested?

Existing integration test with tweaked default setting.

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

@FelixGV FelixGV left a comment

Choose a reason for hiding this comment

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

Thanks Jialin. The main change LGTM, but I left a comment about the testing.

Copy link
Contributor

@FelixGV FelixGV left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM. Let's fix the test coverage and static analysis and get this in...

gaojieliu
gaojieliu previously approved these changes Oct 31, 2023
Copy link
Contributor

@gaojieliu gaojieliu left a comment

Choose a reason for hiding this comment

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

Thanks for the fix and let us follow up with the failing test.

@sixpluszero sixpluszero merged commit b33fd93 into linkedin:main Nov 1, 2023
30 checks passed
elijahgrimaldi pushed a commit to elijahgrimaldi/venice that referenced this pull request Nov 1, 2023
…Update RMD chunking (linkedin#723)

This PR fixes repush failure in A/A partial update store

Current checksum calculation will take every PUT message's key, schemaId, value into account. However, RMD chunk as it is also a chunk PUT message and it is calculated in the running checksum, while the expected checksum which iterates the SST file does not contain it (since RMD chunk is put into RMD CF). This is the reason that repush failed on checksum verification.

During the investigation, we also found that default integration test config setup is not correct. It enables PlainTable mode by default and disable checksum verification by default, which is not consistent with current production behavior. This PR fixes the issue.
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