Skip to content

Commit

Permalink
Merge branch 'master' into fix_btree_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sanebay authored Jan 19, 2024
2 parents 224e1b0 + 7cb45a2 commit fc1a096
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/checkpoint/cp_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ void CPManager::start_cp_thread() {
auto ctx = std::make_shared< Context >();

// Start a reactor with 9 fibers (8 for sync io)
iomanager.create_reactor("cp_io", iomgr::INTERRUPT_LOOP, 8u, [this, &ctx](bool is_started) {
iomanager.create_reactor("cp_io", iomgr::INTERRUPT_LOOP, 8u, [this, ctx](bool is_started) {
if (is_started) {
{
std::unique_lock< std::mutex > lk{ctx->mtx};
Expand Down
6 changes: 5 additions & 1 deletion src/lib/homestore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void HomeStore::shutdown() {

if (has_index_service()) {
m_index_service->stop();
// m_index_service.reset();
// m_index_service.reset();
}

if (has_log_service()) {
Expand All @@ -258,6 +258,10 @@ void HomeStore::shutdown() {
m_dev_mgr->close_devices();
m_dev_mgr.reset();

#ifdef _PRERELEASE
flip::Flip::instance().stop_rpc_server();
#endif

HomeStore::reset_instance();
LOGINFO("Homestore is completed its shutdown");
}
Expand Down
5 changes: 3 additions & 2 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ if (${io_tests})
set(TEST_INDEXBTREE_SOURCE_FILES test_index_btree.cpp)
add_executable(test_index_btree ${TEST_INDEXBTREE_SOURCE_FILES})
target_link_libraries(test_index_btree homestore ${COMMON_TEST_DEPS} GTest::gtest)
# add_test(NAME IndexBtree COMMAND test_index_btree)
# set_property(TEST IndexBtree PROPERTY ENVIRONMENT "ASAN_OPTIONS=detect_stack_use_after_return=true")
add_test(NAME IndexBtree COMMAND test_index_btree)
set_property(TEST IndexBtree PROPERTY ENVIRONMENT "ASAN_OPTIONS=detect_stack_use_after_return=true")
set_tests_properties(IndexBtree PROPERTIES TIMEOUT 600)

add_executable(test_data_service)
target_sources(test_data_service PRIVATE test_data_service.cpp)
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_index_btree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct BtreeTest : public BtreeTestHelper< TestType >, public ::testing::Test {
}
};

using BtreeTypes = testing::Types< FixedLenBtree, VarKeySizeBtree, VarValueSizeBtree, VarObjSizeBtree >;
using BtreeTypes = testing::Types< FixedLenBtree /* , VarKeySizeBtree, VarValueSizeBtree, VarObjSizeBtree */ >;

TYPED_TEST_SUITE(BtreeTest, BtreeTypes);

Expand Down

0 comments on commit fc1a096

Please sign in to comment.