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
Jérome Perrin
neoppod
Commits
59abb90d
Commit
59abb90d
authored
Jan 10, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase verbosity a bit.
parent
80038d2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
neo/lib/node.py
neo/lib/node.py
+3
-2
neo/master/handlers/election.py
neo/master/handlers/election.py
+1
-1
No files found.
neo/lib/node.py
View file @
59abb90d
...
...
@@ -103,7 +103,7 @@ class Node(object):
Define the connection that is currently available to this node.
"""
assert
connection
is
not
None
assert
self
.
_connection
is
None
assert
self
.
_connection
is
None
,
attributeTracker
.
whoSet
(
self
,
'_connection'
)
self
.
_connection
=
connection
connection
.
setOnClose
(
self
.
onConnectionClosed
)
self
.
_manager
.
_updateIdentified
(
self
)
...
...
@@ -128,11 +128,12 @@ class Node(object):
return
self
.
_connection
is
not
None
and
self
.
_uuid
is
not
None
def
__repr__
(
self
):
return
'<%s(uuid=%s, address=%s, state=%s) at %x>'
%
(
return
'<%s(uuid=%s, address=%s, state=%s
, connection=%r
) at %x>'
%
(
self
.
__class__
.
__name__
,
dump
(
self
.
_uuid
),
self
.
_address
,
self
.
_state
,
self
.
_connection
,
id
(
self
),
)
...
...
neo/master/handlers/election.py
View file @
59abb90d
...
...
@@ -37,7 +37,7 @@ class ClientElectionHandler(MasterHandler):
node
=
self
.
app
.
nm
.
getByAddress
(
addr
)
assert
node
is
not
None
,
(
dump
(
self
.
app
.
uuid
),
addr
)
assert
node
.
isUnknown
(),
(
dump
(
self
.
app
.
uuid
),
node
.
whoSetState
(),
node
.
getState
()
)
node
)
# connection never success, node is still in unknown state
self
.
app
.
negotiating_master_node_set
.
discard
(
addr
)
super
(
ClientElectionHandler
,
self
).
connectionFailed
(
conn
)
...
...
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