Skip to content
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

box.cfg fails #3814

Closed
pgulutzan opened this issue Nov 16, 2018 · 0 comments
Closed

box.cfg fails #3814

pgulutzan opened this issue Nov 16, 2018 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@pgulutzan
Copy link
Contributor

pgulutzan commented Nov 16, 2018

I have Ubuntu 18.04. I have Tarantool 2.1, pulled from source today.
I execute this request:

box.cfg{}

Result:

tarantool> box.cfg{}
2018-11-16 11:37:35.018 [9942] main/101/interactive C> Tarantool 2.1.1-7-gd381a45b6
2018-11-16 11:37:35.018 [9942] main/101/interactive C> log level 5
2018-11-16 11:37:35.018 [9942] main/101/interactive I> mapping 268435456 bytes for memtx tuple arena...
2018-11-16 11:37:35.018 [9942] main/101/interactive I> mapping 134217728 bytes for vinyl tuple arena...
2018-11-16 11:37:35.024 [9942] main/101/interactive I> recovery start
2018-11-16 11:37:35.024 [9942] main/101/interactive I> recovering from `./00000000000000000113.snap'
2018-11-16 11:37:35.039 [9942] main/101/interactive space.h:267 E> ER_NO_SUCH_INDEX: No index #2 is defined in space '_space'
2018-11-16 11:37:35.039 [9942] main/101/interactive space.h:267 E> ER_NO_SUCH_INDEX: No index #2 is defined in space '_space'
2018-11-16 11:37:35.040 [9942] main/101/interactive alter.cc:1716 E> ER_NO_SUCH_SPACE: Space 'H�E���UH��H�� H�}�H�u��' does not exist
2018-11-16 11:37:35.040 [9942] main/101/interactive F> can't initialize storage: Space 'H�E���UH��H�� H�}�H�u��' does not exist

Alas, I failed to see exactly what caused this, although I remember that I was trying out SQL statements including tables with strange names, for example create table ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ (s1 int primary key); -- but not names like the ones in the error messages above. I am attaching the earliest .snap file, zipped, and i know that if this .snap file is present then Tarantool will produce the above error messages.
issue.zip
issue.zip

@kyukhin kyukhin added the bug Something isn't working label Dec 7, 2018
@kyukhin kyukhin added this to the 2.1.1 milestone Dec 7, 2018
@kyukhin kyukhin assigned Korablev77 and unassigned romanhabibov Mar 19, 2019
Korablev77 added a commit that referenced this issue Mar 19, 2019
During creation of VIEW space, string containing its definition (i.e.
"SELECT ...") is parsed to fetch names of referenced spaces. By those
names real struct space objects are found using schema_find_id().
This function processes lookup in _space using its secondary index.
On the other hand, secondary indexes of _space are unavailable during
this stage of recovery, so this lookup fails and whole recovery process
aborts.

It is worth mentioning that now we can fetch space directly from
in-memory cache using its name (originally, when view reference counter
was introduced, we couldn't do this due to absence of name-cache). So,
to fix this issue, let's use space_by_name() instead of schema_find_id()

Closes #3814
@kyukhin kyukhin added tmp and removed tmp labels Mar 29, 2019
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

4 participants