Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not checksum all bytes at once in plugin install (elastic#44649)
Today when checksumming a plugin zip during plugin install, we read all of the bytes of the zip into memory at once. When trying to run the plugin installer on a small heap (say, 64 MiB), this can lead to the plugin installer running out of memory when checksumming large plugins. This commit addresses this by reading the plugin bytes in 8 KiB chunks, thus using a constant amount of memory independent of the size of the plugin.
- Loading branch information