You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] Scanning datasets does not enforce back pressure #29252
The synchronous scanner is properly applying back pressure when the source has multiple scan tasks (e.g. parquet). However it is not applying back pressure when sources have a single scan task (e.g. CSV / IPC). The root cause is here:
The asynchronous scanner is not applying back pressure because it is now connected to an ExecPlan and ExecPlan does not have back pressure implemented yet.
I'm not sure how much effort we want to put into fixing the synchronous scanner given that it is slated for removal.
Carl Boettiger / @cboettig:
Any news on this? I believe this bug is still the cause of the system crashes I see when trying to access large parquet files in arrow, e.g. in R:
Weston Pace / @westonpace:
That is actually what I've been working on today (shame on me for not toggling Start Progress). Right now I have a PR up that adds backpressure back in for unordered scans. I expect to have a PR ready that will add backpressure for ordered scans soon (I am hoping tomorrow). If you are interested I can probably get you a test wheel (are you installing with conda or pypi?) sometime next week and would appreciate if you could let me know if it solves your issue.
Activity
asfimport commentedon Aug 12, 2021
Weston Pace / @westonpace:
It appears to make no difference if
use_asyncis True or False.asfimport commentedon Aug 12, 2021
Weston Pace / @westonpace:
Additional information.
The synchronous scanner is properly applying back pressure when the source has multiple scan tasks (e.g. parquet). However it is not applying back pressure when sources have a single scan task (e.g. CSV / IPC). The root cause is here:
arrow/cpp/src/arrow/dataset/scanner.cc
Line 207 in f959141
The asynchronous scanner is not applying back pressure because it is now connected to an ExecPlan and ExecPlan does not have back pressure implemented yet.
I'm not sure how much effort we want to put into fixing the synchronous scanner given that it is slated for removal.
asfimport commentedon Sep 30, 2021
Carl Boettiger / @cboettig:
Any news on this? I believe this bug is still the cause of the system crashes I see when trying to access large parquet files in arrow, e.g. in R:
asfimport commentedon Oct 1, 2021
Weston Pace / @westonpace:
That is actually what I've been working on today (shame on me for not toggling Start Progress). Right now I have a PR up that adds backpressure back in for unordered scans. I expect to have a PR ready that will add backpressure for ordered scans soon (I am hoping tomorrow). If you are interested I can probably get you a test wheel (are you installing with conda or pypi?) sometime next week and would appreciate if you could let me know if it solves your issue.
asfimport commentedon Oct 12, 2021
Weston Pace / @westonpace:
Issue resolved by pull request 11285
#11285