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

Sets the chunk encoding correctly when creating chunk from bytes. #1420

Merged
merged 4 commits into from
Dec 14, 2019

Conversation

cyriltovena
Copy link
Contributor

Previously only the reader and writer for the encoding was set, on subsequent serialization
the format would be missing, this only happens if the chunk is created from a chunk transfer.
Because it uses NewBytesChunk to load and also write.

I've also added a regression tests.

Signed-off-by: Cyril Tovena cyril.tovena@gmail.com

Previously only the reader and writer for the encoding was set, on subsequent serialization
the format would be missing, this only happens if the chunk is created from a chunk transfer.
Because it uses NewBytesChunk to load and also write.

I've also added a regression tests.

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

owen-d and others added 3 commits December 14, 2019 12:46
Also when running out of memory we should just return an error
and not keep going.

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
@cyriltovena cyriltovena merged commit 949126e into grafana:master Dec 14, 2019
@cyriltovena cyriltovena deleted the fix-chunk-formatv2 branch December 14, 2019 18:16
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.

None yet

3 participants