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
0c9fde4f
Commit
0c9fde4f
authored
9 years ago
by
Sulverus
Browse files
Options
Downloads
Patches
Plain Diff
catch test comments updated
parent
7e9ccd77
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/replication/catch.result
+10
-3
10 additions, 3 deletions
test/replication/catch.result
test/replication/catch.test.lua
+10
-3
10 additions, 3 deletions
test/replication/catch.test.lua
with
20 additions
and
6 deletions
test/replication/catch.result
+
10
−
3
View file @
0c9fde4f
...
...
@@ -29,7 +29,7 @@ while box.space.test == nil do fiber.sleep(0.01) end
...
--# set connection default
--# stop server replica
-- insert values
-- insert values
on the master while replica os stopped and can't fetch them
for i=1,100 do s:insert{i, 'this is test message12345'} end
---
...
...
...
@@ -40,7 +40,14 @@ errinj.set("ERRINJ_RELAY", true)
...
--# start server replica
--# set connection replica
-- try to delete
-- Check that replica doesn't enter read-write mode
-- before catching up with the master: to check that we inject
-- sleep into the master relay_send function and attempt a data
-- modifying statement in replica while it's still fetching
-- data from the master.
-- In next 2 cases we try to delete tuple
-- during fetching process(local delete, remote delete)
-- case #1: delete tuple in replica
box.space.test:len()
---
- 1
...
...
@@ -52,7 +59,7 @@ box.space.test:get(1) ~= nil
---
- false
...
--
try to delet
e by net.box
--
case #2: delete tupl
e by net.box
--# set connection default
--# set variable r_uri to 'replica.listen'
c = net_box:new(r_uri)
...
...
This diff is collapsed.
Click to expand it.
test/replication/catch.test.lua
+
10
−
3
View file @
0c9fde4f
...
...
@@ -17,7 +17,7 @@ while box.space.test == nil do fiber.sleep(0.01) end
--# set connection default
--# stop server replica
-- insert values
-- insert values
on the master while replica os stopped and can't fetch them
for
i
=
1
,
100
do
s
:
insert
{
i
,
'this is test message12345'
}
end
-- sleep after every tuple
...
...
@@ -26,12 +26,19 @@ errinj.set("ERRINJ_RELAY", true)
--# start server replica
--# set connection replica
-- try to delete
-- Check that replica doesn't enter read-write mode
-- before catching up with the master: to check that we inject
-- sleep into the master relay_send function and attempt a data
-- modifying statement in replica while it's still fetching
-- data from the master.
-- In next 2 cases we try to delete tuple
-- during fetching process(local delete, remote delete)
-- case #1: delete tuple in replica
box
.
space
.
test
:
len
()
d
=
box
.
space
.
test
:
delete
{
1
}
box
.
space
.
test
:
get
(
1
)
~=
nil
--
try to delet
e by net.box
--
case #2: delete tupl
e by net.box
--# set connection default
--# set variable r_uri to 'replica.listen'
c
=
net_box
:
new
(
r_uri
)
...
...
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