forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid additional memory allocation during sort output spill (facebook…
…incubator#11199) Summary: Pull Request resolved: facebookincubator#11199 Memory arbitration fuzzer is flaky because of the unexpected memory allocation after sort output spill finish. The reason is that when we finish spill, we setup the merge reader to prepare reading the unspilled data. The merge reader might use non-trivial amount of data which cause additional memory consumption. And we shall keep the spill critical path as fast as possible. This PR moves the merge reader setup from the spill path to the first get output with unit tests. Also improve the fuzzer test logging a bit to help debug. Reviewed By: bikramSingh91 Differential Revision: D64072660 fbshipit-source-id: 01e409a92a329b1634cf746af940a9e2b8af11c4
- Loading branch information
1 parent
63c848d
commit 530b446
Showing
4 changed files
with
163 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters