Wrong error message and junk in the log for disabled namespace

Bug #789373 reported by Kostja Osipov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tarantool
Fix Released
Medium
Kostja Osipov

Bug Description

If a namespace is defined, but disabled, Tarantool reports:

tarantool> insert into t1 values ('abcd')
An error occurred: ERR_CODE_NO_SUCH_NAMESPACE, 'No namespace with specified id exists'

The error log contains more stuff than necessary:

1306534962.466 6857 107/33013/handler 127.0.0.1:50878 box.m:769 W> namespace 1 is not enabled
1306534962.466 6857 107/33013/handler 127.0.0.1:50878 box.m:96 E> tnt_BoxException: "There is no such namespace"/`namespace is not enabled' at /home/kostja/work/tarantool/mod/box/box.m:771
1306534962.467 6857 107/33013/handler 127.0.0.1:50878 box.m:1229 E> tnt_BoxException: "There is no such namespace"/`namespace is not enabled' at /home/kostja/work/tarantool/mod/box/box.m:771

- the error is already reported, first (the namespace is disabled)
- tnt_BoxException is logged twice, which is wrong
- wrong error text in the exception, the namespace is defined.

How to repeat:
Here's my namespace[1] configuration:

namespace[0].index[1].type = TREE
namespace[0].index[1].unique = 1
namespace[0].index[1].key_field[0].fieldno = 0
namespace[0].index[1].key_field[0].type = "STR"
namespace[0].index[1].key_field[1].fieldno = 0
namespace[0].index[1].key_field[1].type = "NUM"

Revision history for this message
Kostja Osipov (kostja) wrote :

Fixed in 1.4.2, test case in box.test

Changed in tarantool:
milestone: none → 1.4.3
assignee: nobody → Kostja Osipov (kostja)
importance: Undecided → Medium
status: New → Fix Released
Revision history for this message
Kostja Osipov (kostja) wrote :

box/sql.test, that is.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.