You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "chebbyChefNEQ (via GitHub)" <gi...@apache.org> on 2025/03/20 21:25:49 UTC

[I] LocalFileSystem Copy is not Atomic [arrow-rs-object-store]

chebbyChefNEQ opened a new issue, #144:
URL: https://github.com/apache/arrow-rs-object-store/issues/144

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for this feature, in addition to  the *what*)
   -->
   In most object stores `copy` operation is atomic, the file will not appear partially written.
   
   However, on *nix, `copy` is usually not atomic and partially written file can appear.
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   It would be nice if `object_store` had a `atomic_copy` api
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features you've considered.
   -->
   
   I have been doing
   ```rust
   store.copy(source, staging_file).await?;
   store.rename(staging_file, dest).await?;
   ```


-- 
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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org