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
6c679687
Commit
6c679687
authored
Nov 02, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ce30f3f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
neo/tests/threaded/test.py
neo/tests/threaded/test.py
+4
-4
No files found.
neo/tests/threaded/test.py
View file @
6c679687
...
@@ -750,7 +750,7 @@ class Test(NEOThreadedTest):
...
@@ -750,7 +750,7 @@ class Test(NEOThreadedTest):
finally
:
finally
:
cluster
.
stop
()
cluster
.
stop
()
def
test2Clusters
(
self
):
def
test2Clusters
(
self
):
# NOTE
cluster1
=
NEOCluster
()
cluster1
=
NEOCluster
()
cluster2
=
NEOCluster
()
cluster2
=
NEOCluster
()
try
:
try
:
...
@@ -787,7 +787,7 @@ class Test(NEOThreadedTest):
...
@@ -787,7 +787,7 @@ class Test(NEOThreadedTest):
cluster
.
stop
()
cluster
.
stop
()
def
testShutdown
(
self
):
def
testShutdown
(
self
):
# BUG: Due to bugs in election, master nodes sometimes crash, or they
# BUG: Due to bugs in election, master nodes sometimes crash, or they
# <- NOTE
# declare themselves primary too quickly. The consequence is
# declare themselves primary too quickly. The consequence is
# often an endless tic loop.
# often an endless tic loop.
cluster
=
NEOCluster
(
master_count
=
3
,
partitions
=
10
,
cluster
=
NEOCluster
(
master_count
=
3
,
partitions
=
10
,
...
@@ -1001,7 +1001,7 @@ class Test(NEOThreadedTest):
...
@@ -1001,7 +1001,7 @@ class Test(NEOThreadedTest):
c
.
getConnection
().
close
()
c
.
getConnection
().
close
()
c
,
=
cluster
.
storage
.
nm
.
getClientList
()
c
,
=
cluster
.
storage
.
nm
.
getClientList
()
c
.
getConnection
().
close
()
c
.
getConnection
().
close
()
self
.
tic
()
#self.tic() # NOTE works ok with tic() commented
# modify x with another client
# modify x with another client
client
=
cluster
.
newClient
()
client
=
cluster
.
newClient
()
...
@@ -1012,7 +1012,7 @@ class Test(NEOThreadedTest):
...
@@ -1012,7 +1012,7 @@ class Test(NEOThreadedTest):
tid
=
client
.
tpc_finish
(
txn
,
None
)
tid
=
client
.
tpc_finish
(
txn
,
None
)
finally
:
finally
:
client
.
close
()
client
.
close
()
self
.
tic
()
#self.tic() # NOTE ----//----
# Check reconnection to the master and storage.
# Check reconnection to the master and storage.
self
.
assertTrue
(
cluster
.
client
.
history
(
x1
.
_p_oid
))
self
.
assertTrue
(
cluster
.
client
.
history
(
x1
.
_p_oid
))
...
...
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