thisisnic commented on issue #36540:
URL: https://github.com/apache/arrow/issues/36540#issuecomment-7305194822

   @lidavidm - you asked to keep this open to find out what was being held; can 
it be closed given the below (did some experiments with Claude), or is there 
something you'd still like done?
   
     > :robot: : Ran the reporter's gist on pyarrow 26.0.1 (500 failed 
`do_exchange` calls, each error kept). Arrow's memory pool holds 118 MB 
afterwards, which is the last `batch` from the write loop in each failed call's 
frame (500 × 246 KB), kept alive by the exception's traceback. With one line 
added, `del batch` after the loop, the pool stays at 0 and the frame holds only 
the `FlightStreamWriter` and `FlightStreamReader`, which cost about 30 KB of 
RSS per kept error and are released when the errors are dropped. With no errors 
kept, or after `traceback.clear_frames()`, nothing accumulates.
   


-- 
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]

Reply via email to