Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
c7e6c719
Commit
c7e6c719
authored
9 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of github.com:tarantool/tarantool
parents
06832186
68e27cba
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
test-run
+1
-1
1 addition, 1 deletion
test-run
test/replication/swap.result
+3623
-817
3623 additions, 817 deletions
test/replication/swap.result
test/replication/swap.test.py
+21
-12
21 additions, 12 deletions
test/replication/swap.test.py
with
3645 additions
and
830 deletions
test-run
@
9da6ea34
Compare
fce3f149
...
9da6ea34
Subproject commit
fce3f1494a655dd8b66a498bd9bce155cee6cefe
Subproject commit
9da6ea3461a9900d4aa360b3ff6e79684b436628
This diff is collapsed.
Click to expand it.
test/replication/swap.result
+
3623
−
817
View file @
c7e6c719
This diff is collapsed.
Click to expand it.
test/replication/swap.test.py
+
21
−
12
View file @
c7e6c719
...
...
@@ -10,22 +10,30 @@ ID_STEP = 5
LOGIN
=
'
test
'
PASSWORD
=
'
pass123456
'
engines
=
[
'
memtx
'
,
'
sophia
'
]
def
insert_tuples
(
_server
,
begin
,
end
,
msg
=
"
tuple
"
):
for
i
in
range
(
begin
,
end
):
print
'
box.space.tweedledum:insert{%d,
"
%s %d
"
}
'
%
(
i
,
msg
,
i
)
print
'
-
'
space
=
_server
.
iproto
.
py_con
.
space
(
0
)
print
space
.
insert
((
i
,
'
%s %d
'
%
(
msg
,
i
)))
for
engine
in
engines
:
for
i
in
range
(
begin
,
end
):
print
'
box.space.%s:insert{%d,
"
%s %d
"
}
'
%
(
engine
,
i
,
msg
,
i
)
print
'
-
'
space
=
_server
.
iproto
.
py_con
.
space
(
engine
)
print
space
.
insert
((
i
,
'
%s %d
'
%
(
msg
,
i
)))
def
select_tuples
(
_server
,
begin
,
end
):
for
i
in
range
(
begin
,
end
):
print
'
box.space.tweedledum:select{%d}
'
%
i
print
'
-
'
space
=
_server
.
iproto
.
py_con
.
space
(
0
)
print
space
.
select
(
i
)
for
engine
in
engines
:
for
i
in
range
(
begin
,
end
):
print
'
box.space.%s:select{%d}
'
%
(
engine
,
i
)
print
'
-
'
space
=
_server
.
iproto
.
py_con
.
space
(
engine
)
print
space
.
select
(
i
)
# master server
master
=
server
# Re-deploy server to cleanup Sophia data
master
.
stop
()
master
.
cleanup
()
master
.
deploy
()
master
.
admin
(
"
box.schema.user.create(
'
%s
'
, { password =
'
%s
'
})
"
%
(
LOGIN
,
PASSWORD
))
master
.
admin
(
"
box.schema.user.grant(
'
%s
'
,
'
read,write,execute
'
,
'
universe
'
)
"
%
LOGIN
)
master
.
iproto
.
py_con
.
authenticate
(
LOGIN
,
PASSWORD
)
...
...
@@ -42,8 +50,9 @@ replica.uri = '%s:%s@%s' % (LOGIN, PASSWORD, replica.iproto.uri)
replica
.
admin
(
"
while box.space[
'
_priv
'
]:len() < 1 do require(
'
fiber
'
).sleep(0.01) end
"
)
replica
.
iproto
.
py_con
.
authenticate
(
LOGIN
,
PASSWORD
)
master
.
admin
(
"
s = box.schema.space.create(
'
tweedledum
'
, {id = 0})
"
)
master
.
admin
(
"
index = s:create_index(
'
primary
'
, {type =
'
hash
'
})
"
)
for
engine
in
engines
:
master
.
admin
(
"
s = box.schema.space.create(
'
%s
'
, { engine =
'
%s
'
})
"
%
(
engine
,
engine
))
master
.
admin
(
"
index = s:create_index(
'
primary
'
, {type =
'
tree
'
})
"
)
### gh-343: replica.cc must not add login and password to proc title
#status = replica.get_param("status")
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment