Skip to content

test: replication/gh-3247-misc-iproto-sequence-value-not-replicated.test.lua test #178

Open
@avtikhon

Description

@avtikhon

Tarantool version:
Tarantool 2.6.0-115-ge19b392f0
Target: Darwin-x86_64-RelWithDebInfo
Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_BACKTRACE=ON
Compiler: /Library/Developer/CommandLineTools/usr/bin/cc /Library/Developer/CommandLineTools/usr/bin/c++
C_FLAGS: -Wno-unknown-pragmas -fexceptions -funwind-tables -fno-omit-frame-pointer -fno-stack-protector -fno-common -msse2 -std=c11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-gnu-alignof-expression -Werror
CXX_FLAGS: -Wno-unknown-pragmas -fexceptions -funwind-tables -fno-omit-frame-pointer -fno-stack-protector -fno-common -msse2 -std=c++11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-invalid-offsetof -Wno-gnu-alignof-expression -Werror

OS version:

  1. OSX 14
  2. OSX 15

Bug description:

  1. https://gitlab.com/tarantool/tarantool/-/jobs/759928021#L4680

artifacts.zip

results file checksum: 4a4f2db6802e1b2fa2e31bb9948e7440

[025] --- replication/gh-3247-misc-iproto-sequence-value-not-replicated.result	Tue Sep 22 23:24:32 2020
[025] +++ replication/gh-3247-misc-iproto-sequence-value-not-replicated.reject	Mon Sep 28 06:45:00 2020
[025] @@ -23,33 +23,43 @@
[025]  ...
[025]  _ = box.schema.space.create('space1')
[025]  ---
[025] +- error: Can't modify data because this instance is in read-only mode.
[025]  ...
[025]  _ = box.schema.sequence.create('seq')
[025]  ---
[025] +- error: Can't modify data because this instance is in read-only mode.
[025]  ...
[025]  _ = box.space.space1:create_index('primary', {sequence = true} )
[025]  ---
[025] +- error: '[string "_ = box.space.space1:create_index(''primary'', ..."]:1: attempt
[025] +    to index field ''space1'' (a nil value)'
[025]  ...
[025]  _ = box.space.space1:create_index('secondary', {parts = {2, 'unsigned'}})
[025]  ---
[025] +- error: '[string "_ = box.space.space1:create_index(''secondary''..."]:1: attempt
[025] +    to index field ''space1'' (a nil value)'
[025]  ...
[025]  box.schema.user.grant('guest', 'read,write', 'space', 'space1')
[025]  ---
[025] +- error: Space 'space1' does not exist
[025]  ...
[025]  c = net_box.connect(box.cfg.listen)
[025]  ---
[025]  ...
[025]  c.space.space1:insert{box.NULL, "data"} -- fails, but bumps sequence value
[025]  ---
[025] -- error: 'Tuple field 2 type does not match one required by operation: expected unsigned'
[025] +- error: '[string "return c.space.space1:insert{box.NULL, "data"..."]:1: attempt to
[025] +    index field ''space1'' (a nil value)'
[025]  ...
[025]  c.space.space1:insert{box.NULL, 1, "data"}
[025]  ---
[025] -- [2, 1, 'data']
[025] +- error: '[string "return c.space.space1:insert{box.NULL, 1, "da..."]:1: attempt to
[025] +    index field ''space1'' (a nil value)'
[025]  ...
[025]  box.space.space1:select{}
[025]  ---
[025] -- - [2, 1, 'data']
[025] +- error: '[string "return box.space.space1:select{} "]:1: attempt to index field ''space1''
[025] +    (a nil value)'
[025]  ...
[025]  vclock = test_run:get_vclock("autobootstrap1")
[025]  ---
[025] @@ -66,7 +76,8 @@
[025]  ...
[025]  box.space.space1:select{}
[025]  ---
[025] -- - [2, 1, 'data']
[025] +- error: '[string "return box.space.space1:select{} "]:1: attempt to index field ''space1''
[025] +    (a nil value)'
[025]  ...
[025]  test_run:cmd("switch autobootstrap1")
[025]  ---
[025] @@ -74,6 +85,8 @@
[025]  ...
[025]  box.space.space1:drop()
[025]  ---
[025] +- error: '[string "return box.space.space1:drop() "]:1: attempt to index field ''space1''
[025] +    (a nil value)'
[025]  ...
[025]  test_run:cmd("switch default")
[025]  ---
[025] 
  1. https://gitlab.com/tarantool/tarantool/-/jobs/759111918
[043] Last 15 lines of Tarantool Log file [Instance "autobootstrap1"][/tmp/tnt/043_replication/autobootstrap1.log]:
[043] 2020-09-26 23:00:33.078 [53362] main/114/applier/cluster@unix/:/private/tmp/tnt/043_replication/autobootstrap3.sock I> will retry every 0.03 second
[043] 2020-09-26 23:00:33.078 [53362] main/112/applier/cluster@unix/:/private/tmp/tnt/043_replication/autobootstrap1.sock I> remote master a424519a-af42-49d3-8d78-caeb3f450bdd at unix/:/private/tmp/tnt/043_replication/autobootstrap1.sock running Tarantool 2.6.0
[043] 2020-09-26 23:00:33.214 [53362] main/113/applier/cluster@unix/:/private/tmp/tnt/043_replication/autobootstrap2.sock I> remote master 297ea2ee-6690-42ba-99f8-27472dd5fc30 at unix/:/private/tmp/tnt/043_replication/autobootstrap2.sock running Tarantool 2.6.0
[043] 2020-09-26 23:00:33.379 [53362] main/114/applier/cluster@unix/:/private/tmp/tnt/043_replication/autobootstrap3.sock I> remote master 6730501b-a187-4fdb-9747-7838cb1c97fb at unix/:/private/tmp/tnt/043_replication/autobootstrap3.sock running Tarantool 2.6.0
[043] 2020-09-26 23:00:33.380 [53362] main/103/autobootstrap1 I> connected to 3 replicas
[043] 2020-09-26 23:00:33.380 [53362] main/114/applier/cluster@unix/:/private/tmp/tnt/043_replication/autobootstrap3.sock I> failed to authenticate
[043] 2020-09-26 23:00:33.380 [53362] main/114/applier/cluster@unix/:/private/tmp/tnt/043_replication/autobootstrap3.sock box.cc:1662 E> ER_LOADING: Instance bootstrap hasn't finished yet
[043] 2020-09-26 23:00:33.380 [53362] main/114/applier/cluster@unix/:/private/tmp/tnt/043_replication/autobootstrap3.sock I> will retry every 0.03 second
[043] 2020-09-26 23:00:33.411 [53362] main/114/applier/cluster@unix/:/private/tmp/tnt/043_replication/autobootstrap3.sock I> authenticated
[043] 2020-09-26 23:00:33.411 [53362] main/103/autobootstrap1 I> bootstrapping replica from 6730501b-a187-4fdb-9747-7838cb1c97fb at unix/:/private/tmp/tnt/043_replication/autobootstrap3.sock
[043] 2020-09-26 23:00:33.411 [53362] main/114/applier/cluster@unix/:/private/tmp/tnt/043_replication/autobootstrap3.sock I> can't read row
[043] 2020-09-26 23:00:33.411 [53362] main/114/applier/cluster@unix/:/private/tmp/tnt/043_replication/autobootstrap3.sock box.cc:152 E> ER_READONLY: Can't modify data because this instance is in read-only mode.
[043] 2020-09-26 23:00:33.411 [53362] main/103/autobootstrap1 box.cc:152 E> ER_READONLY: Can't modify data because this instance is in read-only mode.
[043] 2020-09-26 23:00:33.411 [53362] main/103/autobootstrap1 F> can't initialize storage: Can't modify data because this instance is in read-only mode.
[043] 2020-09-26 23:00:33.411 [53362] main/103/autobootstrap1 F> can't initialize storage: Can't modify data because this instance is in read-only mode.
[043] [ fail ]

Steps to reproduce:

Optional (but very desirable):

  • coredump
  • backtrace
  • netstat

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions