[CONTROLLER-737] Clustering : Refactor RaftActor to remove the need for RaftState Created: 27/Aug/14 Updated: 27/Oct/14 Resolved: 27/Oct/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | clustering |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Moiz Raja | Assignee: | Mark Mozolewski |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| External issue ID: | 1631 |
| Description |
|
RaftActor maintains a state machine where the state is represented by the RaftActorBehavior. It also maintains an enumeration called RaftState which basically nothing but the "friendly" name of the RaftActorBehavior which can be passed around. The RaftActorBehavior is mutable so if we do need to pass it around even to sub-classes we need to do it carefully hence for now this refactoring is deferred till after Helium. |
| Comments |
| Comment by Mark Mozolewski [ 22/Oct/14 ] |
| Comment by Mark Mozolewski [ 27/Oct/14 ] |