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
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
6bd82a84
Commit
6bd82a84
authored
Aug 16, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a2115a46
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
go/neo/proto.go
go/neo/proto.go
+0
-2
go/neo/server/cluster_test.go
go/neo/server/cluster_test.go
+11
-1
go/neo/server/master.go
go/neo/server/master.go
+1
-1
No files found.
go/neo/proto.go
View file @
6bd82a84
...
...
@@ -230,7 +230,6 @@ func float64_NEODecode(b []byte) float64 {
}
// NodeInfo is information about a node
// XXX -> nodetab.go ?
type
NodeInfo
struct
{
Type
NodeType
Addr
Address
// serving address
...
...
@@ -239,7 +238,6 @@ type NodeInfo struct {
IdTimestamp
float64
// FIXME clarify semantic where it is used
}
// XXX -> parttab.go ?
type
CellInfo
struct
{
NodeUUID
CellState
...
...
go/neo/server/cluster_test.go
View file @
6bd82a84
...
...
@@ -48,6 +48,7 @@ import (
"lab.nexedi.com/kirr/go123/exc"
"fmt"
"time"
)
// XXX dup from connection_test
...
...
@@ -296,8 +297,9 @@ func TestMasterStorage(t *testing.T) {
// XXX M.partTab <- S1
// verification
//
M starts
verification
tc
.
Expect
(
clusterState
(
&
M
.
clusterState
,
neo
.
ClusterVerifying
))
tc
.
Expect
(
conntx
(
"m:2"
,
"s:2"
,
1
,
&
neo
.
NotifyPartitionTable
{
PTid
:
1
,
RowList
:
[]
neo
.
RowInfo
{
...
...
@@ -305,6 +307,12 @@ func TestMasterStorage(t *testing.T) {
},
}))
tc
.
Expect
(
conntx
(
"m:2"
,
"s:2"
,
1
,
&
neo
.
LockedTransactions
{}))
tc
.
Expect
(
conntx
(
"s:2"
,
"m:2"
,
1
,
&
neo
.
AnswerLockedTransactions
{
TidDict
:
nil
,
// map[zodb.Tid]zodb.Tid{},
}))
// expect:
// ? M -> S ClusterInformation(VERIFICATION)
...
...
@@ -337,7 +345,9 @@ func TestMasterStorage(t *testing.T) {
// TODO test M.recovery starting back from verification/service
// (M needs to resend to all storages recovery messages just from start)
time
.
Sleep
(
100
*
time
.
Millisecond
)
// XXX temp so net tx'ers could actually tx
return
Mcancel
()
// FIXME ctx cancel not fully handled
Scancel
()
// ---- // ----
xwait
(
gwg
)
...
...
go/neo/server/master.go
View file @
6bd82a84
...
...
@@ -458,7 +458,7 @@ loop2:
// recovery successful - we are starting
// S PENDING -> RUNNING
// XXX recheck logic is ok for starting existing cluster
// XXX recheck logic is ok for
when
starting existing cluster
for
_
,
stor
:=
range
m
.
nodeTab
.
StorageList
()
{
if
stor
.
State
==
neo
.
PENDING
{
m
.
nodeTab
.
SetNodeState
(
stor
,
neo
.
RUNNING
)
...
...
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