Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
01bb0bf8
Commit
01bb0bf8
authored
Feb 06, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
(fix syntax error there)
parent
096550b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
neo/tests/threaded/testReplication.py
neo/tests/threaded/testReplication.py
+13
-12
No files found.
neo/tests/threaded/testReplication.py
View file @
01bb0bf8
...
@@ -128,7 +128,7 @@ class ReplicationTests(NEOThreadedTest):
...
@@ -128,7 +128,7 @@ class ReplicationTests(NEOThreadedTest):
self
.
assertEqual
(
np
*
nr
,
self
.
checkBackup
(
backup
))
self
.
assertEqual
(
np
*
nr
,
self
.
checkBackup
(
backup
))
# Check that a backup cluster can be restarted.
# Check that a backup cluster can be restarted.
# (U -> B propagation after restart)
# (U -> B propagation after restart)
backup
.
stop
()
backup
.
stop
()
backup
.
start
()
backup
.
start
()
self
.
assertEqual
(
backup
.
neoctl
.
getClusterState
(),
self
.
assertEqual
(
backup
.
neoctl
.
getClusterState
(),
...
@@ -151,16 +151,17 @@ class ReplicationTests(NEOThreadedTest):
...
@@ -151,16 +151,17 @@ class ReplicationTests(NEOThreadedTest):
backup
.
stop
()
backup
.
stop
()
# U -> B propagation with Mb -> Sb' (secondary, Replicate from primary Sb) delayed
# U -> B propagation with Mb -> Sb' (secondary, Replicate from primary Sb) delayed
# TODO also test: "U -> B propagation with Mb -> Sb (Replicate) delayed" ?
# TODO also test: "U -> B propagation with Mb -> Sb (Replicate) delayed" ?
from
neo.storage.database
import
manager
as
dbmanager
# from neo.storage.database import manager as dbmanager
from
neo.master
import
handlers
as
mhandler
# from neo.master import handlers as mhandler
#dbmanager.X = 1
# #dbmanager.X = 1
#mhandler.X = 1
# #mhandler.X = 1
# (tid, upstream_name, source_dict)
# # (tid, upstream_name, source_dict)
#return True
# #return True
#return not upstream_name and all(source_dict.itervalues())
# #return not upstream_name and all(source_dict.itervalues())
return
upstream_name
!=
""
# return upstream_name != ""
backup
.
start
()
backup
.
start
()
backup
.
neoctl
.
setClusterState
(
ClusterStates
.
STARTING_BACKUP
)
backup
.
neoctl
.
setClusterState
(
ClusterStates
.
STARTING_BACKUP
)
self
.
tic
()
self
.
tic
()
...
@@ -193,7 +194,7 @@ class ReplicationTests(NEOThreadedTest):
...
@@ -193,7 +194,7 @@ class ReplicationTests(NEOThreadedTest):
dbmanager
.
X
=
0
dbmanager
.
X
=
0
mhandler
.
X
=
0
mhandler
.
X
=
0
# S -> Sb (AddObject) delayed XXX not only S -> Sb: also Sb -> Sb'
# S -> Sb (AddObject) delayed XXX not only S -> Sb: also Sb -> Sb'
backup
.
start
()
backup
.
start
()
backup
.
neoctl
.
setClusterState
(
ClusterStates
.
STARTING_BACKUP
)
backup
.
neoctl
.
setClusterState
(
ClusterStates
.
STARTING_BACKUP
)
self
.
tic
()
self
.
tic
()
...
...
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