-
Notifications
You must be signed in to change notification settings - Fork 86
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
Conversation
…Update RMD chunking
There was a problem hiding this 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.
...mmon/src/integrationTest/java/com/linkedin/venice/integration/utils/VeniceServerWrapper.java
Show resolved
Hide resolved
...inci-client/src/main/java/com/linkedin/davinci/kafka/consumer/PartitionConsumptionState.java
Show resolved
Hide resolved
There was a problem hiding this 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...
...mmon/src/integrationTest/java/com/linkedin/venice/integration/utils/VeniceServerWrapper.java
Show resolved
Hide resolved
...mmon/src/integrationTest/java/com/linkedin/venice/integration/utils/VeniceServerWrapper.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
…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.
[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?