Commit 5bb2c36
Cover Arrow-side reservations reaching the peak recorder
`ArrowMemoryPool` implements Arrow's `MemoryPool` by growing a DataFusion
`MemoryReservation` against the pool it wraps, so a buffer claimed through
it reaches `PeakRecordingPool::grow` and is recorded like any other
reservation. Nothing in DataFusion claims buffers today, but that makes
the peak follow the accounting as it changes rather than fixing it to the
current set of manually tracked consumers.
That property was assumed rather than tested. Add a test that builds an
`ArrowMemoryPool` over the recording pool and asserts an Arrow-side
reservation both raises the peak and releases on drop.
`arrow-buffer/pool` and `datafusion-execution/arrow_buffer_pool` are
enabled as dev-dependencies only, so the benchmark binaries are built with
exactly the features they were before.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent bd5f16f commit 5bb2c36
3 files changed
Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
287 | 293 | | |
288 | 294 | | |
289 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
290 | 326 | | |
0 commit comments