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
67fc31dd
Commit
67fc31dd
authored
Aug 31, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
17a95c4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
go/neo/client/client.go
go/neo/client/client.go
+3
-1
go/neo/server/cluster_test.go
go/neo/server/cluster_test.go
+1
-0
No files found.
go/neo/client/client.go
View file @
67fc31dd
...
...
@@ -271,7 +271,7 @@ func (c *Client) recvMaster(ctx context.Context, mlink *neo.NodeLink) error {
case
*
neo
.
NotifyNodeInformation
:
// XXX msg.IdTimestamp ?
for
_
,
nodeInfo
:=
range
msg
.
NodeList
{
log
.
Infof
(
ctx
,
"rx
peer
update: %v"
,
nodeInfo
)
log
.
Infof
(
ctx
,
"rx
node
update: %v"
,
nodeInfo
)
c
.
node
.
NodeTab
.
Update
(
nodeInfo
,
/*XXX conn should not be here*/
nil
)
}
...
...
@@ -279,6 +279,8 @@ func (c *Client) recvMaster(ctx context.Context, mlink *neo.NodeLink) error {
log
.
Infof
(
ctx
,
"full nodetab:
\n
%s"
,
c
.
node
.
NodeTab
)
case
*
neo
.
NotifyClusterState
:
// XXX loging under lock
log
.
Infof
(
ctx
,
"rx state update: %v"
,
msg
.
State
)
c
.
node
.
ClusterState
.
Set
(
msg
.
State
)
}
...
...
go/neo/server/cluster_test.go
View file @
67fc31dd
...
...
@@ -384,6 +384,7 @@ func TestMasterStorage(t *testing.T) {
}))
// C <- M NotifyNodeInformation C1,M1,S1
// FIXME this might come in parallel with ^^^ "C asks M about PT"
tc
.
Expect
(
conntx
(
"m:3"
,
"c:1"
,
0
,
&
neo
.
NotifyNodeInformation
{
IdTimestamp
:
0
,
// XXX ?
NodeList
:
[]
neo
.
NodeInfo
{
...
...
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