raulcd opened a new issue, #55851: URL: https://github.com/apache/arrow/issues/55851
### Describe the bug, including details regarding any error messages, version, and platform. Some wheels jobs seem to be flaky on this test, example on a PR run: - https://github.com/ursacomputing/crossbow/actions/runs/45411261199/job/141716450615 And the nightlies: - [wheel-macos-monterey-cp314-cp314-arm64](https://github.com/ursacomputing/crossbow/actions/runs/46242884118/job/141283457042) - [wheel-manylinux-2-28-cp314-cp314-arm64](https://github.com/ursacomputing/crossbow/actions/runs/46242879524/job/141283443815) - [wheel-manylinux-2-28-cp314-cp314t-amd64](https://github.com/ursacomputing/crossbow/actions/runs/46242881352/job/141283449658) - [wheel-manylinux-2-28-cp315-cp315t-amd64](https://github.com/ursacomputing/crossbow/actions/runs/46242877596/job/141283436947) We might have to do a gc.collect before checking the allocated bytes. ```python @pytest.mark.parametrize("use_dataset_path", [True, False]) def test_read_table_memory_pool(tempdir, proxy_pool, use_dataset_path, monkeypatch): table = pa.table({'a': list(range(1000)), 'b': [str(i) for i in range(1000)]}) path = str(tempdir / 'data.parquet') pq.write_table(table, path) if not use_dataset_path: # Exercise the ParquetFile fallback used without pyarrow.dataset monkeypatch.setitem(sys.modules, "pyarrow.dataset", None) result = pq.read_table(path, memory_pool=proxy_pool) assert result.equals(table) assert proxy_pool.bytes_allocated() >= table.nbytes result = None > assert proxy_pool.bytes_allocated() == 0 E assert 15104 == 0 E + where 15104 = bytes_allocated() E + where bytes_allocated = <pyarrow.ProxyMemoryPool backend_name=mimalloc bytes_allocated=0 max_memory=58624>.bytes_allocated ``` ### Component(s) Python, Continuous Integration -- 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]
