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
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
Stefane Fermigier
neo
Commits
80a1426b
Commit
80a1426b
authored
Jan 18, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print tracebacks for exceptions occurring in NEOCluster.__del__ .
parent
75e245fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
neo/tests/threaded/__init__.py
neo/tests/threaded/__init__.py
+11
-6
No files found.
neo/tests/threaded/__init__.py
View file @
80a1426b
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import
os
,
random
,
socket
,
sys
,
tempfile
,
threading
,
time
,
types
,
weakref
import
os
,
random
,
socket
,
sys
,
tempfile
,
threading
,
time
,
types
,
weakref
import
traceback
from
collections
import
deque
from
collections
import
deque
from
itertools
import
count
from
itertools
import
count
from
functools
import
wraps
from
functools
import
wraps
...
@@ -665,12 +666,16 @@ class NEOCluster(object):
...
@@ -665,12 +666,16 @@ class NEOCluster(object):
txn
=
transaction
.
TransactionManager
()
txn
=
transaction
.
TransactionManager
()
return
txn
,
self
.
db
.
open
(
transaction_manager
=
txn
)
return
txn
,
self
.
db
.
open
(
transaction_manager
=
txn
)
def
__del__
(
self
):
def
__del__
(
self
,
__print_exc
=
traceback
.
print_exc
):
self
.
neoctl
.
close
()
try
:
for
node_type
in
'admin'
,
'storage'
,
'master'
:
self
.
neoctl
.
close
()
for
node
in
getattr
(
self
,
node_type
+
'_list'
):
for
node_type
in
'admin'
,
'storage'
,
'master'
:
node
.
close
()
for
node
in
getattr
(
self
,
node_type
+
'_list'
):
self
.
client
.
em
.
close
()
node
.
close
()
self
.
client
.
em
.
close
()
except
:
__print_exc
()
raise
def
extraCellSortKey
(
self
,
key
):
def
extraCellSortKey
(
self
,
key
):
return
Patch
(
self
.
client
.
cp
,
_getCellSortKey
=
lambda
orig
,
*
args
:
return
Patch
(
self
.
client
.
cp
,
_getCellSortKey
=
lambda
orig
,
*
args
:
...
...
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