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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
b8deac3d
Commit
b8deac3d
authored
Aug 11, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2a04321a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
go/neo/server/cluster_test.go
go/neo/server/cluster_test.go
+15
-5
No files found.
go/neo/server/cluster_test.go
View file @
b8deac3d
...
@@ -224,7 +224,7 @@ func TestMasterStorage(t *testing.T) {
...
@@ -224,7 +224,7 @@ func TestMasterStorage(t *testing.T) {
ClusterName
:
"abc1"
,
ClusterName
:
"abc1"
,
IdTimestamp
:
0
,
IdTimestamp
:
0
,
}))
}))
//
XXX ...
M adjust nodetab...
//
TODO check
M adjust nodetab...
tc
.
Expect
(
conntx
(
"m:2"
,
"s:2"
,
1
,
&
neo
.
AcceptIdentification
{
tc
.
Expect
(
conntx
(
"m:2"
,
"s:2"
,
1
,
&
neo
.
AcceptIdentification
{
NodeType
:
neo
.
MASTER
,
NodeType
:
neo
.
MASTER
,
MyNodeUUID
:
neo
.
UUID
(
neo
.
MASTER
,
1
),
MyNodeUUID
:
neo
.
UUID
(
neo
.
MASTER
,
1
),
...
@@ -233,12 +233,22 @@ func TestMasterStorage(t *testing.T) {
...
@@ -233,12 +233,22 @@ func TestMasterStorage(t *testing.T) {
YourNodeUUID
:
neo
.
UUID
(
neo
.
STORAGE
,
1
),
YourNodeUUID
:
neo
.
UUID
(
neo
.
STORAGE
,
1
),
}))
}))
// TODO test ID rejects
// M starts recovery on S
tc
.
Expect
(
conntx
(
"m:2"
,
"s:2"
,
0
,
&
neo
.
Recovery
{}))
tc
.
Expect
(
conntx
(
"s:2"
,
"m:2"
,
0
,
&
neo
.
AnswerRecovery
{
// empty new node
PTid
:
0
,
BackupTid
:
0
,
TruncateTid
:
0
,
}))
tc
.
Expect
(
conntx
(
"m:2"
,
"s:2"
,
0
,
&
neo
.
AskPartitionTable
{}))
// M <- S .? RequestIdentification{...} + TODO test ID rejects
tc
.
Expect
(
conntx
(
"s:2"
,
"m:2"
,
0
,
&
neo
.
AnswerPartitionTable
{
PTid
:
0
,
RowList
:
nil
,
// XXX -> []
}))
// XXX temp
// XXX temp
return
return
...
...
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