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
Xavier Thompson
neoppod
Commits
82672031
Commit
82672031
authored
Oct 15, 2018
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qa: in threaded tests, log queued packets when "tic is looping forever"
parent
323fd636
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
neo/tests/threaded/__init__.py
neo/tests/threaded/__init__.py
+18
-1
No files found.
neo/tests/threaded/__init__.py
View file @
82672031
...
...
@@ -33,7 +33,8 @@ from neo.lib.connection import BaseConnection, \
from
neo.lib.connector
import
SocketConnector
,
ConnectorException
from
neo.lib.handler
import
EventHandler
from
neo.lib.locking
import
SimpleQueue
from
neo.lib.protocol
import
ClusterStates
,
Enum
,
NodeStates
,
NodeTypes
,
Packets
from
neo.lib.protocol
import
uuid_str
,
\
ClusterStates
,
Enum
,
NodeStates
,
NodeTypes
,
Packets
from
neo.lib.util
import
cached_property
,
parseMasterList
,
p64
from
..
import
(
getTempDirectory
,
setupMySQLdb
,
ImporterConfigParser
,
NeoTestBase
,
Patch
,
...
...
@@ -263,6 +264,7 @@ class TestSerialized(Serialized):
if
r
:
return
r
Serialized
.
tic
(
step
=
1
,
timeout
=
.
001
)
ConnectionFilter
.
log
()
raise
Exception
(
"tic is looping forever"
)
return
self
.
_epoll
.
poll
(
timeout
)
...
...
@@ -549,6 +551,20 @@ class ConnectionFilter(object):
else
:
del
cls
.
filter_queue
[
conn
]
@
classmethod
def
log
(
cls
):
try
:
if
cls
.
filter_queue
:
logging
.
info
(
'%s:'
,
cls
.
__name__
)
for
conn
,
queue
in
cls
.
filter_queue
.
iteritems
():
app
=
NEOThreadedTest
.
getConnectionApp
(
conn
)
logging
.
info
(
' %s %s:'
,
uuid_str
(
app
.
uuid
),
conn
)
for
p
in
queue
:
logging
.
info
(
' #0x%04x %s'
,
p
.
getId
(),
p
.
__class__
.
__name__
)
except
Exception
:
logging
.
exception
(
''
)
def
add
(
self
,
filter
,
*
patches
):
with
self
.
lock
:
self
.
filter_dict
[
filter
]
=
patches
...
...
@@ -601,6 +617,7 @@ class NEOCluster(object):
if
lock
(
False
):
return
True
Serialized
.
tic
(
step
=
1
,
quiet
=
True
,
timeout
=
.
001
)
ConnectionFilter
.
log
()
raise
Exception
(
"tic is looping forever"
)
return
lock
(
False
)
self
.
_lock
=
_lock
...
...
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