Skip to content
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

KAFKA-2903: FileRecords.read doesn't handle size > sizeInBytes when start is not zero #4158

Conversation

ijuma
Copy link
Contributor

@ijuma ijuma commented Oct 30, 2017

No description provided.

@ijuma
Copy link
Contributor Author

ijuma commented Oct 30, 2017

Review by @hachikuji

@hachikuji
Copy link
Contributor

LGTM. I guess we wouldn't actually hit this case when reading from the log because we have some external logic to ensure proper bounds. Is that right?

@ijuma
Copy link
Contributor Author

ijuma commented Oct 30, 2017

@hachikuji I think we never do a slice of a slice so this is just in case we ever do that (I was closing older JIRAs and came across this one which had a trivial fix).

@hachikuji
Copy link
Contributor

Thanks for the patch. Merging to trunk.

@asfgit asfgit closed this in 8e4b3dc Oct 30, 2017
@ijuma ijuma deleted the kafka-2903-file-records-read-slice-size-greater branch December 22, 2017 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants