mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 11:55:15 +00:00
In scylladb/scylladb#19745, view_builder was migrated to group0 and since then it is dependant on group0_service. Because of this, group0_service should be initialized/destroyed before/after view_builder. This patch also adds error injection to `raft_server_with_timeouts::read_barrier`, which does 1s sleep before doing the read barrier. There is a new test which reproduces the use after free bug using the error injection. Fixes scylladb/scylladb#20772 scylladb/scylladb#19745 is present in 6.2, so this fix should be backported to it. Closes scylladb/scylladb#21471 * github.com:scylladb/scylladb: test/boost/secondary_index_test: add test for use after free api/raft: use `get_server_with_timeouts().read_barrier()` in coroutines main,cql_test_env: start group0_service before view_builder