Skip to content

ReadBufferDataHandle: ensure pages are fully read #346

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
Dec 19, 2018

Conversation

gab1one
Copy link
Contributor

@gab1one gab1one commented Dec 14, 2018

Reading bytes with DataHandle#read(bytes[], off, len) results in up
to
len bytes being read into the provided array.
In ReadBufferHandleDataHandle the number of read bytes was not checked,
this lead to partially filled pages resulting in read errors. Now the
reading is repeated until the page is either full or EOF is reached.

@gab1one gab1one requested a review from ctrueden December 14, 2018 11:38
Reading bytes with `DataHandle#read(bytes[], off, len)` results in *up
to* `len` bytes being read into the provided array.
In ReadBufferHandleDataHandle the number of read bytes was not checked,
this lead to partially filled pages resulting in read errors. Now the
reading is repeated until the page is either full or EOF is reached.

And adapt to changes in ReadBufferDataHandle.
@ctrueden ctrueden force-pushed the fix-read-buffer-data-handle branch from 03c2171 to 4a20b44 Compare December 19, 2018 18:57
@ctrueden ctrueden merged commit 37236d6 into master Dec 19, 2018
@ctrueden
Copy link
Member

Thank you for fixing this! 👍

@ctrueden ctrueden deleted the fix-read-buffer-data-handle branch December 19, 2018 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants