Skip to content

Instantly share code, notes, and snippets.

@miasantreble
Created April 10, 2018 02:36
Show Gist options
  • Save miasantreble/7599c33f4e17da1024c67d4540dbe397 to your computer and use it in GitHub Desktop.
Save miasantreble/7599c33f4e17da1024c67d4540dbe397 to your computer and use it in GitHub Desktop.
another tsan failure
[ OK ] DBPropertiesTest.NeedCompactHintPersistentTest (86 ms)
[ RUN ] DBPropertiesTest.EstimateNumKeysUnderflow
[ OK ] DBPropertiesTest.EstimateNumKeysUnderflow (54 ms)
[ RUN ] DBPropertiesTest.EstimateOldestKeyTime
==================
WARNING: ThreadSanitizer: data race (pid=52994)
Read of size 8 at 0x7d08000ad6d8 by thread T2 (mutexes: write M148234):
#0 rocksdb::MockTimeEnv::GetCurrentTime(long*) db/db_test_util.h:587 (db_properties_test+0x0000005c5f1c)
#1 GetExpiredTtlFilesCount db/version_set.cc:1559 (db_properties_test+0x000000837c2a)
#2 rocksdb::VersionStorageInfo::ComputeCompactionScore(rocksdb::ImmutableCFOptions const&, rocksdb::MutableCFOptions const&) db/version_set.cc:1626 (db_properties_test+0x000000837c2a)
#3 rocksdb::VersionSet::AppendVersion(rocksdb::ColumnFamilyData*, rocksdb::Version*) db/version_set.cc:2709 (db_properties_test+0x000000847635)
#4 rocksdb::VersionSet::LogAndApply(rocksdb::ColumnFamilyData*, rocksdb::MutableCFOptions const&, rocksdb::autovector<rocksdb::VersionEdit*, 8ul> const&, rocksdb::InstrumentedMutex*, rocksdb::Directory*, bool, rocksdb::ColumnFamilyOptions const*) db/version_set.cc:2965 (db_properties_test+0x00000084c21e)
#5 rocksdb::VersionSet::LogAndApply(rocksdb::ColumnFamilyData*, rocksdb::MutableCFOptions const&, rocksdb::VersionEdit*, rocksdb::InstrumentedMutex*, rocksdb::Directory*, bool, rocksdb::ColumnFamilyOptions const*) db/version_set.h:751 (db_properties_test+0x000000707bfe)
#6 rocksdb::DBImpl::DeleteObsoleteFileImpl(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rocksdb::FileType, unsigned long) db/db_impl_files.cc:369 (db_properties_test+0x000000707bfe)
#7 rocksdb::DBImpl::PurgeObsoleteFiles(rocksdb::JobContext&, bool) db/db_impl_files.cc:555 (db_properties_test+0x00000070d4c9)
#8 rocksdb::DBImpl::BackgroundCallFlush() db/db_impl_compaction_flush.cc:1459 (db_properties_test+0x0000006eed0c)
#9 rocksdb::DBImpl::BGWorkFlush(void*) db/db_impl_compaction_flush.cc:1307 (db_properties_test+0x0000006ef13e)
#10 operator() util/threadpool_imp.cc:441 (db_properties_test+0x000000a3542d)
#11 _M_invoke /mnt/gvfs/third-party2/gcc/8219ec1bcedf8ad9da05e121e193364de2cc4f61/5.x/centos6-native/c447969/include/c++/5.4.1/functional:1871 (db_properties_test+0x000000a3542d)
#12 std::function<void ()>::operator()() const /mnt/gvfs/third-party2/gcc/8219ec1bcedf8ad9da05e121e193364de2cc4f61/5.x/centos6-native/c447969/include/c++/5.4.1/functional:2267 (db_properties_test+0x0000005fa913)
#13 rocksdb::ThreadPoolImpl::Impl::BGThread(unsigned long) util/threadpool_imp.cc:240 (db_properties_test+0x000000a369d1)
#14 rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper(void*) util/threadpool_imp.cc:278 (db_properties_test+0x000000a36d49)
#15 void* std::_Bind_simple<void* (*(rocksdb::BGThreadMetadata*))(void*)>::_M_invoke<0ul>(std::_Index_tuple<0ul>) /mnt/gvfs/third-party2/gcc/8219ec1bcedf8ad9da05e121e193364de2cc4f61/5.x/centos6-native/c447969/include/c++/5.4.1/functional:1531 (db_properties_test+0x000000a389ef)
#16 std::_Bind_simple<void* (*(rocksdb::BGThreadMetadata*))(void*)>::operator()() /mnt/gvfs/third-party2/gcc/8219ec1bcedf8ad9da05e121e193364de2cc4f61/5.x/centos6-native/c447969/include/c++/5.4.1/functional:1520 (db_properties_test+0x000000a389ef)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment