Public bug reported:
When there are gaps in space[] array in the configuration file, confetti
mistakenly defines the disabled spaces, but they lack indexes.
Example configuration file:
slab_alloc_arena = 0.1
pid_file = "box.pid"
logger="cat - >> tarantool.log"
primary_port = 33013
secondary_port = 33014
admin_port = 33015
rows_per_wal = 50
space[0].enabled = 1
space[0].index[0].type = "HASH"
space[0].index[0].unique = 1
space[0].index[0].key_field[0].fieldno = 0
space[0].index[0].key_field[0].type = "STR"
space[0].index[1].type = "TREE"
space[0].index[1].unique = 0
space[0].index[1].key_field[0].fieldno = 1
space[0].index[1].key_field[0].type = "STR"
space[1].enabled = 1
space[1].index[0].type = "HASH"
space[1].index[0].unique = 1
space[1].index[0].key_field[0].fieldno = 0
space[1].index[0].key_field[0].type = "STR"
space[1].index[1].type = "TREE"
space[1].index[1].unique = 1
space[1].index[1].key_field[0].fieldno = 1
space[1].index[1].key_field[0].type = "STR"
space[1].index[1].key_field[1].fieldno = 2
space[1].index[1].key_field[1].type = "STR"
space[2].enabled = 1
space[2].index[0].type = "TREE"
space[2].index[0].unique = 1
space[2].index[0].key_field[0].fieldno = 0
space[2].index[0].key_field[0].type = "NUM"
space[3].enabled = 1
space[3].index[0].type = "TREE"
space[3].index[0].unique = 1
space[3].index[0].key_field[0].fieldno = 0
space[3].index[0].key_field[0].type = "STR"
space[4].enabled = 1
space[4].index[0].type = "HASH"
space[4].index[0].unique = 1
space[4].index[0].key_field[0].fieldno = 0
space[4].index[0].key_field[0].type = "STR"
space[4].index[1].type = "TREE"
space[4].index[1].unique = 0
space[4].index[1].key_field[0].fieldno = 1
space[4].index[1].key_field[0].type = "STR"
space[5].enabled = 1
space[5].index[0].type = "TREE"
space[5].index[0].unique = 1
space[5].index[0].key_field[0].fieldno = 0
space[5].index[0].key_field[0].type = "NUM64"
space[5].index[1].type = "TREE"
space[5].index[1].unique = 0
space[5].index[1].key_field[0].fieldno = 1
space[5].index[1].key_field[0].type = "STR"
space[5].index[1].key_field[1].fieldno = 2
space[5].index[1].key_field[1].type = "STR"
space[9].enabled = 1
space[9].index[0].type = "TREE"
space[9].index[0].unique = 1
space[9].index[0].key_field[0].fieldno = 0
space[9].index[0].key_field[0].type = "NUM"
Example problematic statement:
show configuration (observe misconfigured spaces 6, 7, 8)
** Affects: tarantool
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/903742
Title:
confetti regression with gaps in space array
Status in Tarantool - an efficient in-memory data store:
New
Bug description:
When there are gaps in space[] array in the configuration file,
confetti mistakenly defines the disabled spaces, but they lack
indexes.
Example configuration file:
slab_alloc_arena = 0.1
pid_file = "box.pid"
logger="cat - >> tarantool.log"
primary_port = 33013
secondary_port = 33014
admin_port = 33015
rows_per_wal = 50
space[0].enabled = 1
space[0].index[0].type = "HASH"
space[0].index[0].unique = 1
space[0].index[0].key_field[0].fieldno = 0
space[0].index[0].key_field[0].type = "STR"
space[0].index[1].type = "TREE"
space[0].index[1].unique = 0
space[0].index[1].key_field[0].fieldno = 1
space[0].index[1].key_field[0].type = "STR"
space[1].enabled = 1
space[1].index[0].type = "HASH"
space[1].index[0].unique = 1
space[1].index[0].key_field[0].fieldno = 0
space[1].index[0].key_field[0].type = "STR"
space[1].index[1].type = "TREE"
space[1].index[1].unique = 1
space[1].index[1].key_field[0].fieldno = 1
space[1].index[1].key_field[0].type = "STR"
space[1].index[1].key_field[1].fieldno = 2
space[1].index[1].key_field[1].type = "STR"
space[2].enabled = 1
space[2].index[0].type = "TREE"
space[2].index[0].unique = 1
space[2].index[0].key_field[0].fieldno = 0
space[2].index[0].key_field[0].type = "NUM"
space[3].enabled = 1
space[3].index[0].type = "TREE"
space[3].index[0].unique = 1
space[3].index[0].key_field[0].fieldno = 0
space[3].index[0].key_field[0].type = "STR"
space[4].enabled = 1
space[4].index[0].type = "HASH"
space[4].index[0].unique = 1
space[4].index[0].key_field[0].fieldno = 0
space[4].index[0].key_field[0].type = "STR"
space[4].index[1].type = "TREE"
space[4].index[1].unique = 0
space[4].index[1].key_field[0].fieldno = 1
space[4].index[1].key_field[0].type = "STR"
space[5].enabled = 1
space[5].index[0].type = "TREE"
space[5].index[0].unique = 1
space[5].index[0].key_field[0].fieldno = 0
space[5].index[0].key_field[0].type = "NUM64"
space[5].index[1].type = "TREE"
space[5].index[1].unique = 0
space[5].index[1].key_field[0].fieldno = 1
space[5].index[1].key_field[0].type = "STR"
space[5].index[1].key_field[1].fieldno = 2
space[5].index[1].key_field[1].type = "STR"
space[9].enabled = 1
space[9].index[0].type = "TREE"
space[9].index[0].unique = 1
space[9].index[0].key_field[0].fieldno = 0
space[9].index[0].key_field[0].type = "NUM"
Example problematic statement:
show configuration (observe misconfigured spaces 6, 7, 8)
To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/903742/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help : https://help.launchpad.net/ListHelp