Skip to content

Commit

Permalink
fix: Write temporary files for export to the t directory. (#7975)
Browse files Browse the repository at this point in the history
Write to t instead of /tmp which in Cloud is mapped to the node storage instead
of the attached volume. /tmp can fill up easily since it's typically smaller than the
allocated storage for the Dgraph Alpha disk where the t directory is.
  • Loading branch information
danielmai committed Aug 26, 2021
1 parent e87694d commit 9cb9502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ func (l *localExportStorage) finishWriting(fs ...*fileWriter) (ExportedFiles, er
}

func newRemoteExportStorage(in *pb.ExportRequest, backupName string) (*remoteExportStorage, error) {
tmpDir, err := ioutil.TempDir("", "export")
tmpDir, err := ioutil.TempDir(x.WorkerConfig.TmpDir, "export")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 9cb9502

Please sign in to comment.