Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vincent Pelletier
neoppod
Commits
cf22c32c
Commit
cf22c32c
authored
Mar 12, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document cell states
parent
04f72a4c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
TODO
TODO
+0
-1
neo/lib/protocol.py
neo/lib/protocol.py
+11
-0
No files found.
TODO
View file @
cf22c32c
...
@@ -8,7 +8,6 @@ RC = Release Critical (for next release)
...
@@ -8,7 +8,6 @@ RC = Release Critical (for next release)
- Clarify the use of each error codes:
- Clarify the use of each error codes:
- NOT_READY removed (connection kept opened until ready)
- NOT_READY removed (connection kept opened until ready)
- Split PROTOCOL_ERROR (BAD IDENTIFICATION, ...)
- Split PROTOCOL_ERROR (BAD IDENTIFICATION, ...)
RC - Clarify cell state signification
- Add docstrings (think of doctests)
- Add docstrings (think of doctests)
Code
Code
...
...
neo/lib/protocol.py
View file @
cf22c32c
...
@@ -80,10 +80,21 @@ class NodeStates(Enum):
...
@@ -80,10 +80,21 @@ class NodeStates(Enum):
NodeStates
=
NodeStates
()
NodeStates
=
NodeStates
()
class
CellStates
(
Enum
):
class
CellStates
(
Enum
):
# Normal state: cell is writable/readable, and it isn't planned to drop it.
UP_TO_DATE
=
Enum
.
Item
(
1
)
UP_TO_DATE
=
Enum
.
Item
(
1
)
# Write-only cell. Last transactions are missing because storage is/was down
# for a while, or because it is new for the partition. It usually becomes
# UP_TO_DATE when replication is done.
OUT_OF_DATE
=
Enum
.
Item
(
2
)
OUT_OF_DATE
=
Enum
.
Item
(
2
)
# Same as UP_TO_DATE, except that it will be discarded as soon as another
# node finishes to replicate it. It means a partition is moved from 1 node
# to another.
FEEDING
=
Enum
.
Item
(
3
)
FEEDING
=
Enum
.
Item
(
3
)
# Not really a state: only used in network packets to tell storages to drop
# partitions.
DISCARDED
=
Enum
.
Item
(
4
)
DISCARDED
=
Enum
.
Item
(
4
)
# A check revealed that data differs from other replicas. Cell is neither
# readable nor writable.
CORRUPTED
=
Enum
.
Item
(
5
)
CORRUPTED
=
Enum
.
Item
(
5
)
CellStates
=
CellStates
()
CellStates
=
CellStates
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment