-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat: Change checksum algorithm to CRC32C. And localize checksum handling t… #506
Conversation
return hc.toString(); | ||
} | ||
|
||
private static Hasher getNewHasher() { |
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.
for better readability, I would rename this to getNewCrc32cHasher
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.
Done
...re-v1-proto-client/src/main/java/com/google/datastore/v1/client/EndToEndChecksumHandler.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 for the review.. I missed looking at the review comments for the last 1 week! sorry about the delay
datastore-v1-proto-client/src/test/java/com/google/datastore/v1/client/RemoteRpcTest.java
Show resolved
Hide resolved
datastore-v1-proto-client/src/test/java/com/google/datastore/v1/client/RemoteRpcTest.java
Show resolved
Hide resolved
...to-client/src/test/java/com/google/datastore/v1/client/ChecksumEnforcingInputStreamTest.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 for the reviews
appreciate follow-up feedback on the PR please
…On Thu, Sep 2, 2021 at 12:38 PM Christopher Wilcox ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In
datastore-v1-proto-client/src/test/java/com/google/datastore/v1/client/RemoteRpcTest.java
<#506 (comment)>
:
> @@ -174,7 +174,7 @@ public void testHttpHeaders_expectE2eChecksumHeader() throws IOException {
httpRequest
.getHeaders()
.getFirstHeaderStringValue(EndToEndChecksumHandler.HTTP_REQUEST_CHECKSUM_HEADER);
- assertEquals(32, header.length());
+ assertEquals(8, header.length());
we have also recently been moving to crc32c for other libs, as the
computation should be faster for streams.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#506 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALRAMQU4UZQAWFJN4ZWIBODT77HCBANCNFSM5CRAS2SA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
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, will let @crwilcox take another look
…o one file.