Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly implement Create-/DropColumnFamilies for PessimisticTransactionDB #10332

Conversation

DaMatrix
Copy link
Contributor

This overrides CreateColumnFamilies and DropColumnFamilies in PessimisticTransactionDB in order to add/remove the created column families to/from the lock manager.

Fixes #10322.

Copy link
Contributor

@riversand963 riversand963 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @DaMatrix for the fix! Left a few comments.

@@ -101,9 +101,21 @@ class PessimisticTransactionDB : public TransactionDB {
const std::string& column_family_name,
ColumnFamilyHandle** handle) override;

virtual Status CreateColumnFamilies(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


s = db_->CreateColumnFamilies(options, column_family_names, handles);
if (s.ok()) {
for (auto it = handles->begin(); it != handles->end(); ++it) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: let's use

assert(handles);
for (auto* handle : *handles) {
}

std::vector<ColumnFamilyHandle*>* handles) {
InstrumentedMutexLock l(&column_family_mutex_);

for (auto it = column_families.begin(); it != column_families.end(); ++it) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: for (auto* cf_desc : column_families)


Status s = db_->CreateColumnFamilies(column_families, handles);
if (s.ok()) {
for (auto it = handles->begin(); it != handles->end(); ++it) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

const ColumnFamilyOptions& options,
const std::vector<std::string>& column_family_names,
std::vector<ColumnFamilyHandle*>* handles) {
InstrumentedMutexLock l(&column_family_mutex_);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if lock acquisition can be postponed after line 394, but we don't have to address this in this PR, given that CreateColumnFamily's behavior.

@riversand963 riversand963 self-requested a review July 14, 2022 00:36
@facebook-github-bot
Copy link
Contributor

@riversand963 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@DaMatrix has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@riversand963 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@riversand963 riversand963 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @DaMatrix for the fix.

@riversand963
Copy link
Contributor

Can you also update HISTORY.md to mention the bug fix?

ASSERT_OK(db->CreateColumnFamilies(cf_options, cf_names, &cf_handles));
ASSERT_OK(db->Put(write_options, cf_handles[0], "foo", "bar"));
ASSERT_OK(db->DropColumnFamilies(cf_handles));
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you need to delete the cf_handles.

=================================================================
==2105374==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x698f67 in operator new(unsigned long) (/data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/fbcode/buck-out/dev/gen/aab7ed39/internal_repo_rocksdb/repo/transaction_test+0x698f67)
    #1 0x7f663d74fe8c in rocksdb::DBImpl::CreateColumnFamilyImpl(rocksdb::ColumnFamilyOptions const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rocksdb::ColumnFamilyHandle**) internal_repo_rocksdb/repo/db/db_impl/db_impl.cc:2845
    #2 0x7f663d7746ad in rocksdb::DBImpl::CreateColumnFamilies(rocksdb::ColumnFamilyOptions const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<rocksdb::ColumnFamilyHandle*, std::allocator<rocksdb::ColumnFamilyHandle*> >*) internal_repo_rocksdb/repo/db/db_impl/db_impl.cc:2732
    #3 0x7f663e120bf7 in rocksdb::PessimisticTransactionDB::CreateColumnFamilies(rocksdb::ColumnFamilyOptions const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<rocksdb::ColumnFamilyHandle*, std::allocator<rocksdb::ColumnFamilyHandle*> >*) internal_repo_rocksdb/repo/utilities/transactions/pessimistic_transaction_db.cc:396
    #4 0x579479 in rocksdb::TransactionTest_WriteWithBulkCreatedColumnFamilies_Test::TestBody() internal_repo_rocksdb/repo/utilities/transactions/transaction_test.cc:6511
    #5 0x7f663be06ad5 in testing::Test::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2682:50
    #6 0x7f663be06ad5 in testing::Test::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2672:6
    #7 0x7f663be06c64 in testing::TestInfo::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2861:14
    #8 0x7f663be06c64 in testing::TestInfo::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2833:6
    #9 0x7f663be07321 in testing::TestSuite::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:3015:31
    #10 0x7f663be07321 in testing::TestSuite::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2993:6
    #11 0x7f663be07b1e in testing::internal::UnitTestImpl::RunAllTests() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:5855:47
    #12 0x7f663be06d87 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2665:29
    #13 0x7f663be06d87 in testing::UnitTest::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:5438:55
    #14 0x697de0 in RUN_ALL_TESTS() third-party-buck/platform010/build/googletest/include/gtest/gtest.h:2490
    #15 0x697d7a in main internal_repo_rocksdb/repo/utilities/transactions/transaction_test.cc:6529
    #16 0x7f663a103656 in __libc_start_call_main /home/engshare/third-party2/glibc/2.34/src/glibc-2.34/csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #17 0x7f663a103717 in __libc_start_main_impl /home/engshare/third-party2/glibc/2.34/src/glibc-2.34/csu/../csu/libc-start.c:409:3
    #18 0x3b4c40 in _start /home/engshare/third-party2/glibc/2.34/src/glibc-2.34/csu/../sysdeps/x86_64/start.S:116

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x698f67 in operator new(unsigned long) (/data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/fbcode/buck-out/dev/gen/aab7ed39/internal_repo_rocksdb/repo/transaction_test+0x698f67)
    #1 0x7f663d74fe8c in rocksdb::DBImpl::CreateColumnFamilyImpl(rocksdb::ColumnFamilyOptions const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rocksdb::ColumnFamilyHandle**) internal_repo_rocksdb/repo/db/db_impl/db_impl.cc:2845
    #2 0x7f663d7746ad in rocksdb::DBImpl::CreateColumnFamilies(rocksdb::ColumnFamilyOptions const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<rocksdb::ColumnFamilyHandle*, std::allocator<rocksdb::ColumnFamilyHandle*> >*) internal_repo_rocksdb/repo/db/db_impl/db_impl.cc:2732
    #3 0x7f663e120bf7 in rocksdb::PessimisticTransactionDB::CreateColumnFamilies(rocksdb::ColumnFamilyOptions const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<rocksdb::ColumnFamilyHandle*, std::allocator<rocksdb::ColumnFamilyHandle*> >*) internal_repo_rocksdb/repo/utilities/transactions/pessimistic_transaction_db.cc:396
    #4 0x579fbc in rocksdb::TransactionTest_WriteWithBulkCreatedColumnFamilies_Test::TestBody() internal_repo_rocksdb/repo/utilities/transactions/transaction_test.cc:6520
    #5 0x7f663be06ad5 in testing::Test::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2682:50
    #6 0x7f663be06ad5 in testing::Test::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2672:6
    #7 0x7f663be06c64 in testing::TestInfo::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2861:14
    #8 0x7f663be06c64 in testing::TestInfo::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2833:6
    #9 0x7f663be07321 in testing::TestSuite::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:3015:31
    #10 0x7f663be07321 in testing::TestSuite::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2993:6
    #11 0x7f663be07b1e in testing::internal::UnitTestImpl::RunAllTests() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:5855:47
    #12 0x7f663be06d87 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2665:29
    #13 0x7f663be06d87 in testing::UnitTest::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:5438:55
    #14 0x697de0 in RUN_ALL_TESTS() third-party-buck/platform010/build/googletest/include/gtest/gtest.h:2490
    #15 0x697d7a in main internal_repo_rocksdb/repo/utilities/transactions/transaction_test.cc:6529
    #16 0x7f663a103656 in __libc_start_call_main /home/engshare/third-party2/glibc/2.34/src/glibc-2.34/csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #17 0x7f663a103717 in __libc_start_main_impl /home/engshare/third-party2/glibc/2.34/src/glibc-2.34/csu/../csu/libc-start.c:409:3
    #18 0x3b4c40 in _start /home/engshare/third-party2/glibc/2.34/src/glibc-2.34/csu/../sysdeps/x86_64/start.S:116

Indirect leak of 8192 byte(s) in 1 object(s) allocated from:
    #0 0x7417da in posix_memalign (/data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/fbcode/buck-out/dev/gen/aab7ed39/internal_repo_rocksdb/repo/transaction_test+0x7417da)
    #1 0x7f663e20968e in rocksdb::port::cacheline_aligned_alloc(unsigned long) internal_repo_rocksdb/repo/port/port_posix.cc:225
    #2 0x7f663d086259 in rocksdb::Striped<rocksdb::port::Mutex, rocksdb::Slice>::Striped(unsigned long, std::function<unsigned long (rocksdb::Slice const&)>) internal_repo_rocksdb/repo/util/mutexlock.h:157
    #3 0x7f663e3f2613 in rocksdb::TableCache::TableCache(rocksdb::ImmutableOptions const&, rocksdb::FileOptions const*, rocksdb::Cache*, rocksdb::BlockCacheTracer*, std::shared_ptr<rocksdb::IOTracer> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) internal_repo_rocksdb/repo/db/table_cache.cc:96
    #4 0x7f663d480a8d in rocksdb::ColumnFamilyData::ColumnFamilyData(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rocksdb::Version*, rocksdb::Cache*, rocksdb::W
...
...
...
s<char>, std::allocator<char> > const&, rocksdb::ColumnFamilyHandle**) internal_repo_rocksdb/repo/db/db_impl/db_impl.cc:2820
    #8 0x7f663d7746ad in rocksdb::DBImpl::CreateColumnFamilies(rocksdb::ColumnFamilyOptions const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<rocksdb::ColumnFamilyHandle*, std::allocator<rocksdb::ColumnFamilyHandle*> >*) internal_repo_rocksdb/repo/db/db_impl/db_impl.cc:2732
    #9 0x7f663e120bf7 in rocksdb::PessimisticTransactionDB::CreateColumnFamilies(rocksdb::ColumnFamilyOptions const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<rocksdb::ColumnFamilyHandle*, std::allocator<rocksdb::ColumnFamilyHandle*> >*) internal_repo_rocksdb/repo/utilities/transactions/pessimistic_transaction_db.cc:396
    #10 0x579fbc in rocksdb::TransactionTest_WriteWithBulkCreatedColumnFamilies_Test::TestBody() internal_repo_rocksdb/repo/utilities/transactions/transaction_test.cc:6520
    #11 0x7f663be06ad5 in testing::Test::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2682:50
    #12 0x7f663be06ad5 in testing::Test::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2672:6
    #13 0x7f663be06c64 in testing::TestInfo::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2861:14
    #14 0x7f663be06c64 in testing::TestInfo::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2833:6
    #15 0x7f663be07321 in testing::TestSuite::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:3015:31
    #16 0x7f663be07321 in testing::TestSuite::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2993:6
    #17 0x7f663be07b1e in testing::internal::UnitTestImpl::RunAllTests() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:5855:47
    #18 0x7f663be06d87 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2665:29
    #19 0x7f663be06d87 in testing::UnitTest::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:5438:55
    #20 0x697de0 in RUN_ALL_TESTS() third-party-buck/platform010/build/googletest/include/gtest/gtest.h:2490
    #21 0x697d7a in main internal_repo_rocksdb/repo/utilities/transactions/transaction_test.cc:6529
    #22 0x7f663a103656 in __libc_start_call_main /home/engshare/third-party2/glibc/2.34/src/glibc-2.34/csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #23 0x7f663a103717 in __libc_start_main_impl /home/engshare/third-party2/glibc/2.34/src/glibc-2.34/csu/../csu/libc-start.c:409:3
    #24 0x3b4c40 in _start /home/engshare/third-party2/glibc/2.34/src/glibc-2.34/csu/../sysdeps/x86_64/start.S:116

Indirect leak of 4 byte(s) in 1 object(s) allocated from:
    #0 0x698f67 in operator new(unsigned long) (/data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/fbcode/buck-out/dev/gen/aab7ed39/internal_repo_rocksdb/repo/transaction_test+0x698f67)
    #1 0x7f663d47ff33 in rocksdb::ColumnFamilyData::ColumnFamilyData(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rocksdb::Version*, rocksdb::Cache*, rocksdb::WriteBufferManager*, rocksdb::ColumnFamilyOptions const&, rocksdb::ImmutableDBOptions const&, rocksdb::FileOptions const*, rocksdb::ColumnFamilySet*, rocksdb::BlockCacheTracer*, std::shared_ptr<rocksdb::IOTracer> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) internal_repo_rocksdb/repo/db/column_family.cc:542
    #2 0x7f663d4bf189 in rocksdb::ColumnFamilySet::CreateColumnFamily(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, rocksdb::Version*, rocksdb::ColumnFamilyOptions const&) internal_repo_rocksdb/repo/db/column_family.cc:1601
    #3 0x7f663e5c06ea in rocksdb::VersionSet::CreateColumnFamily(rocksdb::ColumnFamilyOptions const&, rocksdb::VersionEdit const*) internal_repo_rocksdb/repo/db/version_set.cc:6092
    #4 0x7f663e5b6dd8 in rocksdb::VersionSet::ProcessManifestWrites(std::deque<rocksdb::VersionSet::ManifestWriter, std::allocator<rocksdb::VersionSet::ManifestWriter> >&, rocksdb::InstrumentedMutex*, rocksdb::FSDirectory*, bool, rocksdb::ColumnFamilyOptions const*) internal_repo_rocksdb/repo/db/version_set.cc:4635
    #5 0x7f663e5c3074 in rocksdb::VersionSet::LogAndApply(rocksdb::autovector<rocksdb::ColumnFamilyData*, 8ul> const&, rocksdb::autovector<rocksdb::MutableCFOptions const*, 8ul> const&, rocksdb::autovector<rocksdb::autovector<rocksdb::VersionEdit*, 8ul>, 8ul> const&, rocksdb::InstrumentedMutex*, rocksdb::FSDirectory*, bool, rocksdb::ColumnFamilyOptions const*, std::vector<std::function<void (rocksdb::Status const&)>, std::allocator<std::function<void (rocksdb::Status const&)> > > const&) internal_repo_rocksdb/repo/db/version_set.cc:4881
    #6 0x7f663d55b0db in rocksdb::VersionSet::LogAndApply(rocksdb::ColumnFamilyData*, rocksdb::MutableCFOptions const&, rocksdb::VersionEdit*, rocksdb::InstrumentedMutex*, rocksdb::FSDirectory*, bool, rocksdb::ColumnFamilyOptions const*) internal_repo_rocksdb/repo/db/version_set.h:1099
    #7 0x7f663d74f80c in rocksdb::DBImpl::CreateColumnFamilyImpl(rocksdb::ColumnFamilyOptions const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rocksdb::ColumnFamilyHandle**) internal_repo_rocksdb/repo/db/db_impl/db_impl.cc:2820
    #8 0x7f663d7746ad in rocksdb::DBImpl::CreateColumnFamilies(rocksdb::ColumnFamilyOptions const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<rocksdb::ColumnFamilyHandle*, std::allocator<rocksdb::ColumnFamilyHandle*> >*) internal_repo_rocksdb/repo/db/db_impl/db_impl.cc:2732
    #9 0x7f663e120bf7 in rocksdb::PessimisticTransactionDB::CreateColumnFamilies(rocksdb::ColumnFamilyOptions const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<rocksdb::ColumnFamilyHandle*, std::allocator<rocksdb::ColumnFamilyHandle*> >*) internal_repo_rocksdb/repo/utilities/transactions/pessimistic_transaction_db.cc:396
    #10 0x579479 in rocksdb::TransactionTest_WriteWithBulkCreatedColumnFamilies_Test::TestBody() internal_repo_rocksdb/repo/utilities/transactions/transaction_test.cc:6511
    #11 0x7f663be06ad5 in testing::Test::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2682:50
    #12 0x7f663be06ad5 in testing::Test::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2672:6
    #13 0x7f663be06c64 in testing::TestInfo::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2861:14
    #14 0x7f663be06c64 in testing::TestInfo::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2833:6
    #15 0x7f663be07321 in testing::TestSuite::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:3015:31
    #16 0x7f663be07321 in testing::TestSuite::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2993:6
    #17 0x7f663be07b1e in testing::internal::UnitTestImpl::RunAllTests() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:5855:47
    #18 0x7f663be06d87 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:2665:29
    #19 0x7f663be06d87 in testing::UnitTest::Run() /home/engshare/third-party2/googletest/1.11.0/src/googletest/googletest/src/gtest.cc:5438:55
    #20 0x697de0 in RUN_ALL_TESTS() third-party-buck/platform010/build/googletest/include/gtest/gtest.h:2490
    #21 0x697d7a in main internal_repo_rocksdb/repo/utilities/transactions/transaction_test.cc:6529
    #22 0x7f663a103656 in __libc_start_call_main /home/engshare/third-party2/glibc/2.34/src/glibc-2.34/csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #23 0x7f663a103717 in __libc_start_main_impl /home/engshare/third-party2/glibc/2.34/src/glibc-2.34/csu/../csu/libc-start.c:409:3
    #24 0x3b4c40 in _start /home/engshare/third-party2/glibc/2.34/src/glibc-2.34/csu/../sysdeps/x86_64/start.S:116

SUMMARY: AddressSanitizer: 117504 byte(s) leaked in 154 allocation(s).

@facebook-github-bot
Copy link
Contributor

@DaMatrix has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@DaMatrix has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@DaMatrix has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@riversand963 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@DaMatrix DaMatrix deleted the dev/fix-TransactionDB-CreateColumnFamilies branch July 23, 2022 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TransactionDB->CreateColumnFamilies doesn't create valid column family handles
3 participants