Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-12161

[C++][R] Async streaming CSV reader deadlocking when being run synchronously from datasets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 4.0.0
    • C++, R

    Description

      ARROW-11887 added async to the streaming CSV reader.  In order to keep backwards compatibility the old sync API simply calls the async API and waits for it to finish.  However, that wait cannot happen safely in a "nested" context (e.g. dataset reading).

      For example, imagine two cores.  The dataset read launches two CSV scans.  Each scan occupies a core waiting for a future.  Those futures are being filled by I/O threads.  The I/O threads finish and go to transfer.  The transfer cannot happen because the CPU executor is filled.

      This will be fixed as part of ARROW-7001 but that still some ways away.  An easier change might be to take some of the 7001 changes and include them as part of the 11887 feature.

      Attachments

        Activity

          People

            westonpace Weston Pace
            westonpace Weston Pace
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h 10m
                4h 10m