Important bug fixes (new store): - Fix OSDs possibly refusing to start with "write metadata failed at offset xxx: Invalid argument" (fix buffer alignment during initial garbage collection) - Rollback change from 3.0.4 - on-disk garbage entries are not skipped on start again. This change doesn't have any impact normally, but OSDs originally running 3.0.0-3.0.2 and then upgraded to 3.0.9 may hit a bug where 3.0.9 refuses to start due to entries marked as garbage too early and flushed to disk in 3.0.0-3.0.2. Other changes: - Auto-select the only RDMA device/port if there is only one - Rollback one 3.0.9 change - there was no actual use-after-free :) (the problem was only relevant to an unstable development version) - Fix `vitastor-nfs --trace` option - Fix an unintended 1 second sleep in vitastor-cli rm-data - Fix inode statistics not being cleared for a deleted pool - Fix print to stdout in client
21 lines
1.1 KiB
CMake
21 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 2.8...3.30)
|
|
|
|
project(vitastor)
|
|
|
|
set(VITASTOR_VERSION "3.0.10")
|
|
|
|
include(CTest)
|
|
|
|
add_custom_target(build_tests)
|
|
set_property(TEST PROPERTY ENVIRONMENT LSAN_OPTIONS=suppressions=${CMAKE_CURRENT_BINARY_DIR}/lsan-suppress.txt)
|
|
add_test(gen_lsan_suppress
|
|
${CMAKE_COMMAND} -E echo leak:tcmalloc > "${CMAKE_CURRENT_BINARY_DIR}/lsan-suppress.txt"
|
|
)
|
|
set_tests_properties(gen_lsan_suppress PROPERTIES FIXTURES_SETUP f_lsan_suppress)
|
|
set_property(TEST PROPERTY FIXTURES_REQUIRED f_lsan_suppress)
|
|
# make -j16 -C ../../build test_heap && ../../build/src/test/test_heap
|
|
# make -j16 -C ../../build test_heap && rm -f $(find ../../build -name '*.gcda') && ctest -V -T test -T coverage -R heap --test-dir ../../build && (cd ../../build; gcovr -f ../src --html --html-nested -o coverage/index.html; cd ../src/test)
|
|
# make -j16 -C ../../build test_blockstore && rm -f $(find ../../build -name '*.gcda') && ctest -V -T test -T coverage -R blockstore --test-dir ../../build && (cd ../../build; gcovr -f ../src --html --html-nested -o coverage/index.html; cd ../src/test)
|
|
# kcov --include-path=../../../src ../../kcov ./test_blockstore
|
|
add_subdirectory(src)
|