Stars
2
Forks
0
Watchers
2
Open Issues
0
Overall repository health assessment
No package.json found
This might not be a Node.js project
Simplified the implementation of sendAppendEntriesToPeer() and heartbeat functions
c827018View on GitHubRefined the implementation of Lab 3A. Passed all 3A test cases in much shorter time. The old election timer used time.Timer, which made the implementation more complicated than necessary. Replace it with time.Since() instead. Removed all channels and select statements as they are unnecessary - we can just reorganize the code blocks within the select cases to work with variables and loops instead. Finally, create a different RNG for each server, using their IDs as the seeds - this ensures the randomized election timeout needed in Raft.
f2a6578View on GitHubPrevious commit didn't always pass. In fact, it often failed because we had to wait, in the same goroutine, for channel writes to complete. Now wrap every channel write in a goroutine to prevent deadlocks/waiting for the write.
9a87b96View on GitHubFinished and passed all test cases for Part 3A. Implemented leader election (and re-election) using channels and mutexes.
a190a89View on GitHubImplemented worker failure detection and tolerance by timing out. Passed all tests. Fixed user email typo
2670759View on GitHub18
commits
1
commits