Check total memory limit when allocating user memory#15723
Check total memory limit when allocating user memory#15723rschlussel merged 1 commit intoprestodb:masterfrom
Conversation
pettyjamesm
left a comment
There was a problem hiding this comment.
Makes sense as a matter of closing the gaps of the current implementation. I do wish this code wasn’t so fragile in regard to potential deadlocks and lock contention or that it didn’t use a “read then update” pattern on the memory pool to avoid it- but that’s definitely a larger refactor for another day.
Agreed 100%. I don't have bandwidth for it, but memory management could do with a good refactoring. |
|
ooh looks like all the testMemoryReservationYield tests relied on the old behavior. I'll update those. |
This prevents queries from exceeding the total memory limit between the time that user memory is allocated, and the next system memory allocation.
feb7c9e to
8ced5de
Compare
|
tests pass now. Merging. |
This prevents queries from exceeding the total memory limit between the
time that user memory is allocated, and the next system memory
allocation.
Test plan - unit test