-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[BUG] Bug fix for checksum validation for mapping metadata #15885
[BUG] Bug fix for checksum validation for mapping metadata #15885
Conversation
Signed-off-by: Himshikha Gupta <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15885 +/- ##
============================================
+ Coverage 71.85% 71.91% +0.06%
- Complexity 64213 64235 +22
============================================
Files 5272 5272
Lines 300538 300578 +40
Branches 43432 43432
============================================
+ Hits 215947 216160 +213
+ Misses 66833 66639 -194
- Partials 17758 17779 +21 ☔ View full report in Codecov by Sentry. |
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.
LGTM, needs more tests?
Code coverage is failing for the |
Signed-off-by: Himshikha Gupta <[email protected]>
* Bug fix for checksum validation for mapping metadata Signed-off-by: Himshikha Gupta <[email protected]> (cherry picked from commit f8515c7) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Bug fix for checksum validation for mapping metadata Signed-off-by: Himshikha Gupta <[email protected]> (cherry picked from commit f8515c7) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…h-project#15885) * Bug fix for checksum validation for mapping metadata Signed-off-by: Himshikha Gupta <[email protected]>
@@ -169,6 +170,10 @@ public void writeTo(StreamOutput out) throws IOException { | |||
out.writeByteArray(bytes); | |||
} | |||
|
|||
public void writeVerifiableTo(BufferedChecksumStreamOutput out) throws IOException { | |||
out.writeInt(crc32); |
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.
I see that we are ignoring bytes
field since that can be different. In that case, should we ingore crc32 as well since this is the checksum and this will be different as well if the bytes are different.
…adata #15888 (#15890) * [BUG] Bug fix for checksum validation for mapping metadata (#15885) * Bug fix for checksum validation for mapping metadata Signed-off-by: Himshikha Gupta <[email protected]>
…adata #15888 (#15890) * [BUG] Bug fix for checksum validation for mapping metadata (#15885) * Bug fix for checksum validation for mapping metadata Signed-off-by: Himshikha Gupta <[email protected]> (cherry picked from commit 1074c71) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…adata #15888 (#15890) (#15908) * [BUG] Bug fix for checksum validation for mapping metadata (#15885) Signed-off-by: Himshikha Gupta <[email protected]>
…h-project#15885) * Bug fix for checksum validation for mapping metadata Signed-off-by: Himshikha Gupta <[email protected]>
…h-project#15885) * Bug fix for checksum validation for mapping metadata Signed-off-by: Himshikha Gupta <[email protected]>
…h-project#15885) * Bug fix for checksum validation for mapping metadata Signed-off-by: Himshikha Gupta <[email protected]>
Description
During checksum validation for remote cluster state, for mapping metadata we need to ignore compressed data check.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.