Skip to content

Bugfix: avoid OOM kill while handling arrays that are spanning multiple streams#58

Open
roeey777 wants to merge 1 commit intoledongthuc:masterfrom
roeey777:bugfix/arrays-can-span-multiple-streams
Open

Bugfix: avoid OOM kill while handling arrays that are spanning multiple streams#58
roeey777 wants to merge 1 commit intoledongthuc:masterfrom
roeey777:bugfix/arrays-can-span-multiple-streams

Conversation

@roeey777
Copy link

previously there was a bug which occurred when an array was starting in a stream and continue into the next stream.
in such case the readArray() method got stuck in an infinite loop and constantly appended io.EOF to an array - which consumes all the available memory until an OOM kill by the OS.
the bug was addressed in 2 manners, one it to check for errors in the readArray() method.
the other was to concatenate the streams so the Interpret function could handle (rather than just ignore) those kind of arrays.

        starting in a stream and continue into the next stream.
        in such case the readArray() method got stuck in an infinite loop
        and constantly appended io.EOF to an array - which consumes all
        the available memory until an OOM kill by the OS.
        the bug was addressed in 2 manners, one it to check for errors
        in the readArray() method. the other was to concatenate the
        streams so the Interpret function could handle (rather than just
        ignore) those kind of arrays.

Signed-off-by: Eyal Royee <eyalroyee@gmail.com>
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.

1 participant