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

Bypass DirLockGaurd in Options #1046

Closed
wants to merge 2 commits into from
Closed

Bypass DirLockGaurd in Options #1046

wants to merge 2 commits into from

Conversation

ehsannm
Copy link
Contributor

@ehsannm ehsannm commented Sep 18, 2019

This change is Reviewable

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.


@ehsannm 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.

1 Message
The description of this pull request is blank. Adding a high-level summary will help our reviewers provide better feedback.

@CLAassistant
Copy link

CLAassistant commented Sep 18, 2019

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

coveralls commented Sep 18, 2019

Coverage Status

Coverage increased (+0.02%) to 78.177% when pulling 3a62d2f on ronaksoft:master into db73862 on dgraph-io:master.

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 overall. Some stylistic comments.


Reviewed with ❤️ by PullRequest

@@ -68,6 +68,8 @@ type Options struct {
CompactL0OnClose bool
LogRotatesToFlush int32

BypassLockGuard bool
Copy link

Choose a reason for hiding this comment

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

Maybe use the terminology skip. It's more common place in code to expect that activating a flag like this will cause it to skip over a block of code/checks.

.gitignore Show resolved Hide resolved
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.

Due to inactivity, PullRequest has cancelled this review job. You can reactivate the code review job from the PullRequest dashboard

@stale
Copy link

stale bot commented Dec 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status/stale The issue hasn't had activity for a while and it's marked for closing. label Dec 6, 2019
@stale
Copy link

stale bot commented Dec 13, 2019

This issue was marked as stale and no activity has occurred since then, therefore it will now be closed. Please, reopen if the issue is still relevant.

@stale stale bot closed this Dec 13, 2019
@jonknight73
Copy link

Is this completely defunct, because it would be really. really useful for me?

jonknight73 added a commit to jonknight73/badger that referenced this pull request Feb 18, 2020
jonknight73 added a commit to jonknight73/badger that referenced this pull request Feb 18, 2020
@jarifibrahim jarifibrahim removed the status/stale The issue hasn't had activity for a while and it's marked for closing. label Mar 5, 2020
@jarifibrahim
Copy link
Contributor

@jonknight73 I've raised #1243 for this issue.

jarifibrahim pushed a commit that referenced this pull request Mar 13, 2020
Fixes #988
Based on #1046

This PR adds `BypassDirLock` option which allows badger to work without
acquiring a lock on the data directory. This option could lead to data
corruption if used with multiple badger instances trying to write to
the same badger directory.

Co-authored-by: Ehsan Noureddin Moosa <[email protected]>
jarifibrahim pushed a commit that referenced this pull request Mar 13, 2020
Fixes #988
Based on #1046

This PR adds `BypassDirLock` option which allows badger to work without
acquiring a lock on the data directory. This option could lead to data
corruption if used with multiple badger instances trying to write to
the same badger directory.

Co-authored-by: Ehsan Noureddin Moosa <[email protected]>
(cherry picked from commit 1bcbefc)
jarifibrahim pushed a commit that referenced this pull request Mar 24, 2020
Fixes #988
Based on #1046

This PR adds `BypassDirLock` option which allows badger to work without
acquiring a lock on the data directory. This option could lead to data
corruption if used with multiple badger instances trying to write to
the same badger directory.

Co-authored-by: Ehsan Noureddin Moosa <[email protected]>
(cherry picked from commit 1bcbefc)
manishrjain pushed a commit to outcaste-io/outserv that referenced this pull request Jul 6, 2022
Fixes hypermodeinc/badger#988
Based on hypermodeinc/badger#1046

This PR adds `BypassDirLock` option which allows badger to work without
acquiring a lock on the data directory. This option could lead to data
corruption if used with multiple badger instances trying to write to
the same badger directory.

Co-authored-by: Ehsan Noureddin Moosa <[email protected]>
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.

5 participants