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

Acquire lock before unmapping vlog files #1050

Merged
merged 2 commits into from
Sep 24, 2019
Merged

Conversation

jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Sep 23, 2019

When we truncate the vlog file, we unmap and remap it. This leaves a
window for segfault. This PR reintroduces the lock that got removed in
commit afa8faea.


This change is Reviewable

Ibrahim Jarif added 2 commits September 23, 2019 23:20
When we truncate the vlog file, we unmap and remap it. This leaves a
window for segfault. This PR reintroduces the lock that got removed in
commit afa8faea.
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ A review job has been created and sent to the PullRequest network.


@jarifibrahim you can click here to see the review status or cancel the code review job.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Is there any way to validate this via testing?


Reviewed with ❤️ by PullRequest

@coveralls
Copy link

coveralls commented Sep 23, 2019

Coverage Status

Coverage increased (+0.06%) to 78.091% when pulling 1e2b78e on ibrahim/donewriting-fix into ef1e8e4 on master.

Copy link
Contributor

@poonai poonai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ashish-goswami and @manishrjain)

Copy link
Contributor

@animesh2049 animesh2049 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ashish-goswami and @manishrjain)

@poonai poonai merged commit 1621eca into master Sep 24, 2019
@poonai poonai deleted the ibrahim/donewriting-fix branch September 24, 2019 09:00
jarifibrahim pushed a commit that referenced this pull request Mar 12, 2020
* Acquire lock before unmapping vlog files

When we truncate the vlog file, we unmap and remap it. This leaves a
window for segfault. This PR reintroduces the lock that got removed in
commit afa8faea.

(cherry picked from commit 1621eca)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants