tarantool / vshard

The new generation of sharding based on virtual buckets
Other
99 stars 30 forks source link

flaky test: storage_1_1_test.lua #416

Open Serpentian opened 1 year ago

Serpentian commented 1 year ago

The test fails with the following error:

[005] not ok 10 storage.engine:"vinyl".memtx_use_mvcc_engine:true.test_bucket_send_field_types
[005] #   ...ing/tnt/vshard/test/storage-luatest/storage_1_1_test.lua:152: bucket_send no error
[005] #   expected: nil, actual: {"bucket_id":6,"reason":"transition 'active' to 'sent' is not allowed","code":39,"type":"ShardingError","message":"Bucket 6 update is invalid: transition 'active' to 'sent' is not allowed","name":"BUCKET_INVALID_UPDATE"}
[005] #   stack traceback:
[005] #     ...ing/tnt/vshard/test/storage-luatest/storage_1_1_test.lua:148: in function 'storage.engine:"vinyl".memtx_use_mvcc_engine:true.test_bucket_send_field_types'
[005] #     ...
[005] #     [C]: in function 'xpcall'
[005] not ok 11 storage.engine:"vinyl".memtx_use_mvcc_engine:true.test_on_bucket_event
[005] #   ...ing/tnt/vshard/test/storage-luatest/storage_1_1_test.lua:214: Content of the tables are not identical:
[005] #   Expected: 
[005] #   {
[005] #       {"bucket_data_recv_txn", 1, {spaces = {"data1"}}},
[005] #       {"bucket_data_recv_txn", 1, {spaces = {"data2"}}},
[005] #   }
[005] #   Actual: 
[005] #   {
[005] #       {"bucket_data_recv_txn", 1, {spaces = {"test"}}},
[005] #       {"bucket_data_recv_txn", 1, {spaces = {"data2"}}},
[005] #       {"bucket_data_recv_txn", 1, {spaces = {"data1"}}},
[005] #   }
[005] #   stack traceback:
[005] #     ...ing/tnt/vshard/test/storage-luatest/storage_1_1_test.lua:251: in function 'storage.engine:"vinyl".memtx_use_mvcc_engine:true.test_on_bucket_event'
[005] #     ...
[005] #     [C]: in function 'xpcall'
[005] not ok 12 storage.engine:"vinyl".memtx_use_mvcc_engine:true.test_basic_storage_service_info
[005] #   ...an/Programming/tnt/vshard/test/luatest_helpers/vtest.lua:622: timed out: routes_applier_service is still nil
[005] #   stack traceback:
[005] #     ...ing/tnt/vshard/test/storage-luatest/storage_1_1_test.lua:302: in function 'storage.engine:"vinyl".memtx_use_mvcc_engine:true.test_basic_storage_service_info'
[005] #     ...
[005] #     [C]: in function 'xpcall'

The problem is reproduced with or without mvcc, doesn't seem to be related to it.

Setup:

 | Tarantool 2.10.6-0-g3990f976b
 | Target: Linux-x86_64-RelWithDebInfo
 | Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_BACKTRACE=ON
 | Compiler: GNU-12.2.1
 | C_FLAGS:-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/tarantool/src=/usr/src/debug/tarantool -flto=auto -fexceptions -funwind-tables -fno-common -fopenmp -msse2 -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -fmacro-prefix-map=/build/tarantool/src/tarantool=. -std=c11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -Wno-gnu-alignof-expression -fno-gnu89-inline -Wno-cast-function-type
 | CXX_FLAGS:-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/tarantool/src=/usr/src/debug/tarantool -flto=auto -fexceptions -funwind-tables -fno-common -fopenmp -msse2 -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -fmacro-prefix-map=/build/tarantool/src/tarantool=. -std=c++11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -Wno-invalid-offsetof -Wno-gnu-alignof-expression -Wno-cast-function-type

Reproduced locally and on CI

Serpentian commented 1 year ago

The test sometimes fails with the following error, which isn't related to the above-mentioned one:

[010] storage-luatest/storage_1_1_test.lua                            
[010] TAP version 13
[010] 1..6
[010] # Started on Thu Apr 27 10:41:04 2023
[010] # Starting group: storage.engine:"memtx"
[010] ok     1  storage.engine:"memtx".test_bucket_send_field_types
[010] ok     2  storage.engine:"memtx".test_on_bucket_event
[010] not ok 3  storage.engine:"memtx".test_basic_storage_service_info
[010] #   ...an/Programming/tnt/vshard/test/luatest_helpers/vtest.lua:622: timed out: routes_applier_service is still nil
[010] #   stack traceback:
[010] #     ...ing/tnt/vshard/test/storage-luatest/storage_1_1_test.lua:302: in function 'storage.engine:"memtx".test_basic_storage_service_info'
[010] #     ...
[010] #     [C]: in function 'xpcall'
[010] # Starting group: storage.engine:"vinyl"
[010] ok     4  storage.engine:"vinyl".test_bucket_send_field_types
[010] ok     5  storage.engine:"vinyl".test_on_bucket_event
[010] ok     6  storage.engine:"vinyl".test_basic_storage_service_info
[010] # Ran 6 tests in 60.930 seconds, 5 successes, 1 error