Skip to content

pretest_clean: clean _schema system space #201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Totktonada opened this issue Mar 6, 2020 · 1 comment
Closed

pretest_clean: clean _schema system space #201

Totktonada opened this issue Mar 6, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Totktonada
Copy link
Member

box.once(key, func) call will be executed only first time if the same key will be used in different tests or if a test with this call will be executed twice on the same worker.

Example that reproduces the problem on tarantool-2.4.0-82-gd8a9f1d9c (in fact on any actual tarantool version at the moment of writing):

$ (cd test && ./test-run.py --long -j 1 vinyl/stress.test.lua vinyl/stress.test.lua)

The log of the instance will show attempt to index local 'space' (a nil value) errors:

$ tail -n 1 test/var/001_vinyl/vinyl.log 
2020-03-07 02:08:39.649 [31087] main/139/lua utils.c:1028 E> LuajitError: ...s/tarantool-meta/tarantool/test/var/001_vinyl/stress.lua:83: attempt to index local 'space' (a nil value)

It is because box.once() is used in test/vinyl/stress.lua (which is required from test/vinyl/stress.test.lua).

@Totktonada Totktonada added the bug Something isn't working label Mar 6, 2020
@Totktonada
Copy link
Member Author

Not actual anymore, see PR #309.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant