-
Notifications
You must be signed in to change notification settings - Fork 961
Fix checksum calculation bug when the payload is a CompositeByteBuf with readerIndex > 0 #4196
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
Merged
merlimat
merged 39 commits into
apache:master
from
lhotari:lh-fix-compositebuffer-checksum
Feb 7, 2024
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
9fb47f5
Add a test that reproduces a bug in checksum calculation
lhotari 0707710
Revert "Fixed unnecessary copy to heap (#2701)" changes to ByteBufList
lhotari fe9301d
Remove CompositeBuffer unwrapping in DigestManager
lhotari 532de4f
Rename update -> internalUpdate so that unwrapping logic could be add…
lhotari 9a39d6b
Remove unnecessary unwrapping logic in Java9IntHash
lhotari 986942d
Add safe way to handle CompositeByteBuf
lhotari 0669a66
Add license header
lhotari 4036a3a
Fix checkstyle
lhotari 7a8c200
Refactor ByteBuf visitor solution
lhotari b5b42ee
Fix checkstyle
lhotari 81e9d2d
Reformat
lhotari 6c7e6e0
Refactor recursive visiting
lhotari c19ae5d
Revisit equals, hashCode and toString
lhotari 8928f98
Refactor test case
lhotari 19e33ca
Add support for UnpooledHeapByteBuf.getBytes which passes an array
lhotari 86d002d
Add support for visiting buffers backed by byte[] arrays
lhotari e793872
Move ByteBufVisitor to org.apache.bookkeeper.util package
lhotari 6508bf5
Update javadoc
lhotari 5cd2dd8
Refactor to use stateless visitor so that instance can be shared
lhotari fc93b5e
Improve test so that a single scenario can be used for debugging
lhotari 272e962
Fix bug in Java9IntHash calculation that assumed crc32c_update(x) == …
lhotari b4d0b18
Fix checkstyle
lhotari 9c1b68f
Fix checkstyle
lhotari a751294
Fix missing depth increment that prevents StackOverflowException
lhotari 5f8fef5
Properly handle the depth increase and decrease
lhotari bb703ab
Remove unnecessary condition
lhotari 2b79716
Use more efficient way to read bytes to the target array
lhotari f650b9b
Don't use ByteBufVisitor if it's not necessary
lhotari d21a5cd
Revert "Fix bug in Java9IntHash calculation that assumed crc32c_updat…
lhotari a9ed5e4
Fix issue in resume byte[] version that was added
lhotari b7d5795
Polish ByteBufVisitor
lhotari 34c1c8a
Use extracted method
lhotari be20948
Fix bug with array handling
lhotari 7998659
Polish ByteBufVisitor
lhotari b691316
Optimize the buffer copying in the case where array or memory address…
lhotari 0af1556
Check if memory address is accepted
lhotari 317aab7
Improve comments about complement (current = ~current) in resume
lhotari 2c73dca
Print thread dump when build is cancelled
lhotari c215db8
Filter empty buffers and arrays in ByteBufVisitor
lhotari File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.