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
Levin Zimmermann
neoppod
Commits
81e7018a
Commit
81e7018a
authored
Nov 04, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
eceb8b9e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
38 deletions
+69
-38
neo/lib/protocol.py
neo/lib/protocol.py
+0
-1
neo/tests/threaded/__init__.py
neo/tests/threaded/__init__.py
+23
-0
neo/tests/threaded/testReplication.py
neo/tests/threaded/testReplication.py
+46
-37
No files found.
neo/lib/protocol.py
View file @
81e7018a
...
...
@@ -918,7 +918,6 @@ class LockInformation(Packet):
PTID
(
'ttid'
),
)
# NOTE
class
InvalidateObjects
(
Packet
):
"""
Invalidate objects. PM -> C.
...
...
neo/tests/threaded/__init__.py
View file @
81e7018a
...
...
@@ -691,6 +691,29 @@ class NEOCluster(object):
return
admin
###
# A few handy shortcuts for tests
@
property
def
ptid
(
self
):
return
self
.
neoctl
.
getRecovery
()[
0
]
@
property
def
backup_tid
(
self
):
return
self
.
neoctl
.
getRecovery
()[
1
]
@
property
def
truncated_tid
(
self
):
return
self
.
neoctl
.
getRecovery
()[
2
]
@
property
def
last_tid
(
self
):
return
self
.
primary_master
.
getLastTransaction
()
@
property
def
cluster_state
(
self
):
return
self
.
neoctl
.
getClusterState
()
###
@
property
def
primary_master
(
self
):
master
,
=
[
master
for
master
in
self
.
master_list
if
master
.
primary
]
...
...
neo/tests/threaded/testReplication.py
View file @
81e7018a
This diff is collapsed.
Click to expand it.
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