Skip to content
Snippets Groups Projects
Commit 06a0fb85 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Merge branch '1.6' of git+ssh://github.com/tarantool/tarantool into 1.6

parents bae1b6b7 90c13f4f
No related branches found
No related tags found
No related merge requests found
errinj = box.error.injection
---
...
net_box = require('net.box')
---
...
space = box.schema.space.create('tweedledum')
---
...
......@@ -397,9 +400,45 @@ errinj.set("ERRINJ_TUPLE_ALLOC", false)
---
- ok
...
-- gh-881 iproto request with wal IO error
box.schema.user.grant('guest', 'read,write,execute', 'universe')
---
...
test = box.schema.create_space('test')
---
...
_ = test:create_index('primary')
---
...
for i=1, box.cfg.rows_per_wal do test:insert{i, 'test'} end
---
...
c = net_box:new(box.cfg.listen)
---
...
-- try to write xlog without permission to write to disk
errinj.set('ERRINJ_WAL_WRITE', true)
---
- ok
...
c.space.test:insert({box.cfg.rows_per_wal + 1,1,2,3})
---
- error: Failed to write to disk
...
errinj.set('ERRINJ_WAL_WRITE', false)
---
- ok
...
-- Cleanup
s:drop()
---
...
test:drop()
---
...
errinj = nil
---
...
box.schema.user.revoke('guest', 'read,write,execute', 'universe')
---
...
errinj = box.error.injection
net_box = require('net.box')
space = box.schema.space.create('tweedledum')
index = space:create_index('primary', { type = 'hash' })
......@@ -128,7 +129,21 @@ s:select{};
--# setopt delimiter ''
errinj.set("ERRINJ_TUPLE_ALLOC", false)
s:drop()
-- gh-881 iproto request with wal IO error
box.schema.user.grant('guest', 'read,write,execute', 'universe')
test = box.schema.create_space('test')
_ = test:create_index('primary')
for i=1, box.cfg.rows_per_wal do test:insert{i, 'test'} end
c = net_box:new(box.cfg.listen)
-- try to write xlog without permission to write to disk
errinj.set('ERRINJ_WAL_WRITE', true)
c.space.test:insert({box.cfg.rows_per_wal + 1,1,2,3})
errinj.set('ERRINJ_WAL_WRITE', false)
-- Cleanup
s:drop()
test:drop()
errinj = nil
box.schema.user.revoke('guest', 'read,write,execute', 'universe')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment