Wrong error message and junk in the log for disabled namespace
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_
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"
1306534962.467 6857 107/33013/handler 127.0.0.1:50878 box.m:1229 E> tnt_BoxException: "There is no such namespace"
- 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[
namespace[
namespace[
namespace[
namespace[
namespace[
Fixed in 1.4.2, test case in box.test