Skip to content

#834 Support skipping input chunks after a buffer underflow #850

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
merged 1 commit into from
Aug 4, 2021

Conversation

theigl
Copy link
Collaborator

@theigl theigl commented Aug 4, 2021

Buffer underflows set the buffer position to 0 while trying to resize the buffer. This prevents InputChunked.nextChunk() from advancing to the next chunk.

This PR ensures that that the buffer is at the final position of the chunk before advancing to the next chunk.

Resolves #834.

@theigl theigl added the bug label Aug 4, 2021
@theigl theigl self-assigned this Aug 4, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@theigl theigl force-pushed the 834-skip-chunk-after-underflow branch from b093eca to fd6e657 Compare August 4, 2021 18:01
@theigl theigl merged commit 8785e6e into master Aug 4, 2021
@theigl theigl deleted the 834-skip-chunk-after-underflow branch August 4, 2021 18:09
theigl added a commit that referenced this pull request May 19, 2023
yaooqinn pushed a commit to apache/spark that referenced this pull request Apr 16, 2025
### What changes were proposed in this pull request?
This pr aims to upgrade `kryo-shaded` from 4.0.2 to 4.0.3.

### Why are the changes needed?
This version brings some bug fixes and performance improvements related to chunked encoding:
- mproved filling InputChunked buffer: EsotericSoftware/kryo#651
- Support skipping input chunks after a buffer underflow EsotericSoftware/kryo#850
- Avoid flush repeatedly when has finished flushing EsotericSoftware/kryo#978

full changes as follows:

- EsotericSoftware/kryo@kryo-parent-4.0.2...kryo-parent-4.0.3

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
- Pass GitHub Actions

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #50586 from LuciferYang/kryo-4.0.3.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Kent Yao <yao@apache.org>
LuciferYang added a commit to apache/spark that referenced this pull request Apr 17, 2025
### What changes were proposed in this pull request?
This pr aims to upgrade `kryo-shaded` from 4.0.2 to 4.0.3.

### Why are the changes needed?
This version brings some bug fixes and performance improvements related to chunked encoding:
- mproved filling InputChunked buffer: EsotericSoftware/kryo#651
- Support skipping input chunks after a buffer underflow EsotericSoftware/kryo#850
- Avoid flush repeatedly when has finished flushing EsotericSoftware/kryo#978

full changes as follows:

- EsotericSoftware/kryo@kryo-parent-4.0.2...kryo-parent-4.0.3

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
- Pass GitHub Actions

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #50603 from LuciferYang/SPARK-51806-4.0.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: yangjie01 <yangjie01@baidu.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Buffer underflow while deserializing with Collection type field removed (with reproducible test case)
1 participant