Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cpp/core/shuffle/LocalPartitionWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ std::string LocalPartitionWriter::nextSpilledFileDir() {

arrow::Result<std::shared_ptr<arrow::io::OutputStream>> LocalPartitionWriter::openFile(const std::string& file) {
std::shared_ptr<arrow::io::FileOutputStream> fout;
ARROW_ASSIGN_OR_RAISE(fout, arrow::io::FileOutputStream::Open(file));
auto fd = open(file.c_str(), O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
Comment thread
wangyum marked this conversation as resolved.
Outdated
fchmod(fd, 0644);
Comment thread
wangyum marked this conversation as resolved.
ARROW_ASSIGN_OR_RAISE(fout, arrow::io::FileOutputStream::Open(fd));
Comment thread
wangyum marked this conversation as resolved.
Outdated
if (options_.bufferedWrite) {
// The `shuffleFileBufferSize` bytes is a temporary allocation and will be freed with file close.
// Use default memory pool and count treat the memory as executor memory overhead to avoid unnecessary spill.
Expand Down