Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dgraph
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
dgraph
Commits
4810ba7c
Unverified
Commit
4810ba7c
authored
6 years ago
by
Manish R Jain
Browse files
Options
Downloads
Patches
Plain Diff
Remove CheckQuorum and unsafe lin read option.
parent
ae8e5ffd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
conn/node.go
+5
-2
5 additions, 2 deletions
conn/node.go
with
5 additions
and
2 deletions
conn/node.go
+
5
−
2
View file @
4810ba7c
...
...
@@ -93,8 +93,11 @@ func NewNode(rc *intern.RaftContext, store *raftwal.DiskStorage) *Node {
// follower->leader->majority_of_followers->leader->follower. We lose correctness
// because the Raft ticker might not arrive promptly, in which case the leader would
// falsely believe that its lease is still good.
CheckQuorum
:
true
,
ReadOnlyOption
:
raft
.
ReadOnlyLeaseBased
,
// Remove both of these, to allow default behavior.
// CheckQuorum causes a lot of network disruption. I'm seeing this with v1.0.6.
// CheckQuorum: true,
// ReadOnlyOption: raft.ReadOnlyLeaseBased,
},
// processConfChange etc are not throttled so some extra delta, so that we don't
// block tick when applyCh is full
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment