You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "sarutak (via GitHub)" <gi...@apache.org> on 2023/09/13 11:50:56 UTC

[GitHub] [arrow-datafusion] sarutak commented on a diff in pull request #7538: Fix a race condition issue on reading spilled file

sarutak commented on code in PR #7538:
URL: https://github.com/apache/arrow-datafusion/pull/7538#discussion_r1324394264


##########
datafusion/execution/src/disk_manager.rs:
##########
@@ -71,11 +72,11 @@ impl DiskManagerConfig {
 /// while processing dataset larger than available memory.
 #[derive(Debug)]
 pub struct DiskManager {
-    /// TempDirs to put temporary files in.
+    /// Dirs to put temporary files in.
     ///
-    /// If `Some(vec![])` a new OS specified temporary directory will be created
+    /// If `Some(vec![])` temporary files will be created in the directories.
     /// If `None` an error will be returned (configured not to spill)
-    local_dirs: Mutex<Option<Vec<TempDir>>>,
+    local_dirs: Mutex<Option<Vec<PathBuf>>>,

Review Comment:
   This solution uses directories specified, or returned by `std::env::temp_dir()`, which is usually `/tmp` on Linux.
   So, these directories are not deleted when the `NamedTempFile` are dropped.



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

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