[ 
https://issues.apache.org/jira/browse/ARROW-17855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17610157#comment-17610157
 ] 

N Gautam Animesh commented on ARROW-17855:
------------------------------------------

{code:java}
I am doing both the operations(read_feather() and write_feather()) 
simultaneously which is causing the file to get corrupted.{code}
{code:java}
library(arrow)

df <- read_feather("test.arrow"){code}
{code:java}
library(arrow)
df <- data.frame(mtcars)
write_feather(df, "test.arrow")

{code}

> Simultaneous read-write operations causing file corruption.
> -----------------------------------------------------------
>
>                 Key: ARROW-17855
>                 URL: https://issues.apache.org/jira/browse/ARROW-17855
>             Project: Apache Arrow
>          Issue Type: Improvement
>            Reporter: N Gautam Animesh
>            Priority: Major
>
> UseCase: I was trying to simultaneously read and write an arrow file which in 
> turn gave me an Error. It is leading to file corruption. I am currently using 
> read_feather and write_feather functions to save it as a .arrow file. Do let 
> me know if there's anything in this regard or any other way to avoid this. 
> [Error: Invalid: Not an Arrow file]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to