Closed
Description
Tarantool version:
2.2.0-260-g55e1a140d
OS version:
Mojave 10.14.3
Bug description:
Test failed because of previous tests:
Line 34 (check reproducer below):
--- box/function1.result Wed May 8 08:20:36 2019
+++ var/001_box/function1.result Wed May 8 11:32:24 2019
@@ -34,37 +34,43 @@
...
box.schema.func.drop("function1")
---
+- error: 'Supplied key type of part 0 does not match index part type: expected unsigned'
...
box.schema.func.create('function1.args', {language = "C"})
---
+- error: Duplicate key exists in unique index 'primary' in space '_func'
...
box.schema.user.grant('guest', 'execute', 'function', 'function1.args')
---
+- error: User 'guest' is not found
...
c:call('function1.args')
---
-- error: invalid argument count
+- error: Execute access to function 'function1.args' is denied for user 'guest'
...
c:call('function1.args', { "xx" })
---
-- error: first tuple field must be uint
+- error: Execute access to function 'function1.args' is denied for user 'guest'
...
c:call('function1.args', { 15 })
---
-- [[15, 'hello']]
+- error: Execute access to function 'function1.args' is denied for user 'guest'
...
box.schema.func.drop("function1.args")
---
+- error: Function 'function1.args' does not exist
...
box.schema.func.create('function1.multi_inc', {language = "C"})
---
+- error: Duplicate key exists in unique index 'primary' in space '_func'
...
box.schema.user.grant('guest', 'execute', 'function', 'function1.multi_inc')
---
+- error: User 'guest' is not found
...
c:call('function1.multi_inc')
---
-- []
+- error: Execute access to function 'function1.multi_inc' is denied for user 'guest'
...
box.space.test:select{}
---
Line 447:
[001] --- box/function1.result Tue Aug 27 17:56:21 2019
[001] +++ box/function1.reject Tue Aug 13 12:16:25 2019
[001] @@ -447,36 +447,45 @@
[001] ...
[001] box.schema.func.create("function1.divide", {language = 'C'})
[001] ---
[001] +- error: Duplicate key exists in unique index 'primary' in space '_func'
[001] ...
[001] func = box.func["function1.divide"]
[001] ---
[001] ...
[001] func:call(4, 2)
[001] ---
[001] -- error: 'builtin/box/schema.lua: Use func:call(table)'
[001] +- error: '[string "return func:call(4, 2) "]:1: attempt to index global ''func'' (a
[001] + nil value)'
[001] ...
[001] func:call()
[001] ---
[001] -- error: invalid argument
[001] +- error: '[string "return func:call() "]:1: attempt to index global ''func'' (a nil
[001] + value)'
[001] ...
[001] func:call({})
[001] ---
[001] -- error: invalid argument
[001] +- error: '[string "return func:call({}) "]:1: attempt to index global ''func'' (a
[001] + nil value)'
[001] ...
[001] func:call({4})
[001] ---
[001] -- error: invalid argument
[001] +- error: '[string "return func:call({4}) "]:1: attempt to index global ''func'' (a
[001] + nil value)'
[001] ...
[001] func:call({4, 2})
[001] ---
[001] -- [2]
[001] +- error: '[string "return func:call({4, 2}) "]:1: attempt to index global ''func''
[001] + (a nil value)'
[001] ...
[001] func:call({4, 2, 1})
[001] ---
[001] -- [2]
[001] +- error: '[string "return func:call({4, 2, 1}) "]:1: attempt to index global ''func''
[001] + (a nil value)'
[001] ...
[001] func:drop()
[001] ---
[001] +- error: '[string "return func:drop() "]:1: attempt to index global ''func'' (a nil
[001] + value)'
[001] ...
[001] box.func["function1.divide"]
[001] ---
Steps to reproduce:
setup the configuration file function1.yml
- [box/stat_net.test.lua, null]
- [box/tuple.test.lua, null]
- [box/iterator.test.lua, null]
- [box/net_msg_max.test.lua, null]
- [box/function1.test.lua, null]
and run:
python ./test-run.py -j1 --reproduce function1.yml
Optional (but very desirable):
- coredump
- backtrace
- netstat