paleolimbot commented on PR #14250:
URL: https://github.com/apache/arrow/pull/14250#issuecomment-1259980130

   Cancellation works exactly the same on this branch as it does on the master 
branch!
   
   It's probably not related to this PR, but it looks like attempting to call 
arrow from a forked process in R doesn't work. I think this is the same on the 
master branch (will check tomorrow).
   
   <details>
   
   ``` r
   library(arrow, warn.conflicts = FALSE)
   #> Some features are not enabled in this build of Arrow. Run `arrow_info()` 
for more information.
   
   tf <- tempfile()
   readr::write_csv(vctrs::vec_rep(mtcars, 5e5), tf)
   
   # try to slow down CSV reading
   set_cpu_count(1)
   set_io_thread_count(2)
   
   # see if arrow actually works in a forked R process (it doesn't)
   parallel::mclapply(1:4, function(...) read_csv_arrow(tf))
   #> Warning in parallel::mclapply(1:4, function(...) read_csv_arrow(tf)): all
   #> scheduled cores encountered errors in user code
   #> [[1]]
   #> [1] "Error in as.data.frame(tab) : object 'tab' not found\n"
   #> attr(,"class")
   #> [1] "try-error"
   #> attr(,"condition")
   #> <simpleError in as.data.frame(tab): object 'tab' not found>
   #> 
   #> [[2]]
   #> [1] "Error in as.data.frame(tab) : object 'tab' not found\n"
   #> attr(,"class")
   #> [1] "try-error"
   #> attr(,"condition")
   #> <simpleError in as.data.frame(tab): object 'tab' not found>
   #> 
   #> [[3]]
   #> [1] "Error in as.data.frame(tab) : object 'tab' not found\n"
   #> attr(,"class")
   #> [1] "try-error"
   #> attr(,"condition")
   #> <simpleError in as.data.frame(tab): object 'tab' not found>
   #> 
   #> [[4]]
   #> [1] "Error in as.data.frame(tab) : object 'tab' not found\n"
   #> attr(,"class")
   #> [1] "try-error"
   #> attr(,"condition")
   #> <simpleError in as.data.frame(tab): object 'tab' not found>
   ```
   
   <sup>Created on 2022-09-27 by the [reprex 
package](https://reprex.tidyverse.org) (v2.0.1)</sup>
   
   </details>


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