Skip to content

release/v20.11 - fix(dgraph): Fix dgraph crash on windows (#7261)#7299

Merged
jarifibrahim merged 1 commit intorelease/v20.11from
ibrahim/r20.11-windows
Jan 15, 2021
Merged

release/v20.11 - fix(dgraph): Fix dgraph crash on windows (#7261)#7299
jarifibrahim merged 1 commit intorelease/v20.11from
ibrahim/r20.11-windows

Conversation

@jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Jan 15, 2021

There were two issues on windows

  1. We were trying to delete a file with open file descriptors. This
    doesn't work on windows. The PR fix(MmapFile): Close the fd before deleting the file ristretto#242 in ristretto fixes this.
  2. We were using path.Join instead of filepath.Join. The path package is
    supposed to be used only on Unix systems. In windows the "" is the path
    separator instead of "/".

(cherry picked from commit 5aec243)


This change is Reviewable

There were two issues on windows

1. We were trying to delete a file with open file descriptors. This
doesn't work on windows. The PR dgraph-io/ristretto#242 in ristretto fixes this.
2. We were using path.Join instead of filepath.Join. The path package is
supposed to be used only on Unix systems. In windows the "" is the path
separator instead of "/".

(cherry picked from commit 5aec243)
@github-actions github-actions bot added area/graphql Issues related to GraphQL support on Dgraph. area/integrations Related to integrations with other projects. area/live-loader Issues related to live loading. area/testing Testing related issues area/testing/jepsen labels Jan 15, 2021
@jarifibrahim jarifibrahim merged commit a0228c9 into release/v20.11 Jan 15, 2021
@jarifibrahim jarifibrahim deleted the ibrahim/r20.11-windows branch January 15, 2021 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/graphql Issues related to GraphQL support on Dgraph. area/integrations Related to integrations with other projects. area/live-loader Issues related to live loading. area/testing/jepsen area/testing Testing related issues

Development

Successfully merging this pull request may close these issues.

2 participants