Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 15, 2021

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