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

[FIX] Load whole file into memory before parsing JSON. #11755

Closed
wants to merge 1 commit into from

Conversation

jakob-lundberg
Copy link

Closes #11355

Load whole file into memory before parsing JSON.

Currently the json files are loaded in chunks and the chunks are json decoded. But if a file does not fit in a chunk only part of the file will be decoded. And then the decoding will fail as it is not correct JSON.

With this change the entire file is first loaded into memory and then JSON decoded. This will result in valid JSON. It will however require that there is enough memory to load the entire file.

@CLAassistant
Copy link

CLAassistant commented Aug 13, 2018

CLA assistant check
All committers have signed the CLA.

@engelgabriel engelgabriel added this to In progress in August/2018 via automation Aug 13, 2018
@engelgabriel engelgabriel added this to the 0.69.0 milestone Aug 13, 2018
@rodrigok
Copy link
Member

@jakob-lundberg can you fix the conflicts and the lint errors?

@gf-raveinid
Copy link

@jakob-lundberg Any chance this can be fixed and merged soon. Last blocker for migrating from Hipchat to RocketChat.

@jakob-lundberg
Copy link
Author

@rodrigok does not your commit 14fd90c already take care of #11355 ? Making my pull request obsolete.

@sampaiodiego
Copy link
Member

this was accomplished by #11597

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
August/2018
  
In progress
Development

Successfully merging this pull request may close these issues.

None yet

6 participants