ansh0014 commented on issue #55851: URL: https://github.com/apache/arrow/issues/55851#issuecomment-7278372136
Hi! @raulcd I looked into this failure and wanted to make sure I understood it correctly before working on a fix. From the traceback, the `15104` bytes still allocated right after `result = None` matches the `result` table itself, and the pytest failure repr already shows `bytes_allocated=0` by the time it prints — so it looks like there isn't a real leak, just delayed garbage collection / deallocation (especially on Python 3.14 and free-threaded builds) before the assertion runs. My plan would be to add `gc.collect()` after `result = None` and before `assert proxy_pool.bytes_allocated() == 0` in `test_read_table_memory_pool`, as well as in the two sibling tests in `python/pyarrow/tests/parquet/test_basic.py` (`test_parquet_file_memory_pool` and `test_parquet_dataset_memory_pool`) that use the same pattern. Does this approach sound good to you? If so, could you please assign this issue to me so I can open a PR? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
