Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

commit log and heartbeat issue #35

Open
xiang90 opened this issue Jul 1, 2013 · 1 comment
Open

commit log and heartbeat issue #35

xiang90 opened this issue Jul 1, 2013 · 1 comment
Milestone

Comments

@xiang90
Copy link
Contributor

xiang90 commented Jul 1, 2013

When doing committing, the log is locked. This is a disk operation, and sometime it may take a longer time.
During that operation, our current implementation cannot do heartbeat. This will delay heartbeat and leads to election timeout.

@benbjohnson
Copy link
Contributor

@xiangli-cmu We probably need to switch the locks to use sync.RWMutex. That should fix the problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants