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

Faster test under TSan #14027

Merged
merged 1 commit into from
Aug 25, 2020
Merged

Faster test under TSan #14027

merged 1 commit into from
Aug 25, 2020

Conversation

alexey-milovidov
Copy link
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

I just noticed that the test takes a long time.

@robot-clickhouse robot-clickhouse added the pr-not-for-changelog This PR should not be mentioned in the changelog label Aug 24, 2020
@alesapin
Copy link
Member

alesapin commented Aug 25, 2020

Wow, segmentation fault in stress test:

2020.08.25 01:50:27.115084 [ 424290 ] {2a3af3c4-7696-423e-99b3-5a8cab806068} <Debug> executeQuery: (from [::1]:56776)  DROP TABLE test_lazy_01294_concurrent_test_dfrfvg.tlog; 
2020.08.25 01:50:27.115511 [ 424290 ] {2a3af3c4-7696-423e-99b3-5a8cab806068} <Debug> DatabaseLazy (test_lazy_01294_concurrent_test_dfrfvg): Load table `tlog` to cache.
2020.08.25 01:50:27.394819 [ 424290 ] {2a3af3c4-7696-423e-99b3-5a8cab806068} <Trace> ContextAccess (default): Access granted: DROP TABLE ON test_lazy_01294_concurrent_test_dfrfvg.tlog
2020.08.25 01:50:28.381423 [ 424290 ] {2a3af3c4-7696-423e-99b3-5a8cab806068} <Debug> DatabaseLazy (test_lazy_01294_concurrent_test_dfrfvg): Detach table `tlog`.
2020.08.25 01:50:28.382758 [ 601485 ] {} <Fatal> BaseDaemon: (version 20.8.1.4456, build id: 7438D790B333D20B) (from thread 424290) (query_id: 2a3af3c4-7696-423e-99b3-5a8cab806068) Received signal Segmentation fault (11)
2020.08.25 01:50:28.382472 [ 601485 ] {} <Fatal> BaseDaemon: ########################################
2020.08.25 01:50:28.382758 [ 601485 ] {} <Fatal> BaseDaemon: (version 20.8.1.4456, build id: 7438D790B333D20B) (from thread 424290) (query_id: 2a3af3c4-7696-423e-99b3-5a8cab806068) Received signal Segmentation fault (11)
2020.08.25 01:50:28.382993 [ 601485 ] {} <Fatal> BaseDaemon: Address: NULL pointer. Access: read. Address not mapped to object.
2020.08.25 01:50:28.383260 [ 601485 ] {} <Fatal> BaseDaemon: Stack trace: 0x399321cb 0x3a33c19f 0x3a446e8a 0x3a441466 0x3b394092 0x3b38fb5d 0x3cd5a85c 0x3cd8773c 0x4701f2a1 0x470209a8 0x4748f8f6 0x4748af71 0x4748711f 0x7f2bda490669 0x7f2bda3a72b3
2020.08.25 01:50:28.388354 [ 601485 ] {} <Fatal> BaseDaemon: 4. /build/obj-x86_64-linux-gnu/../src/Databases/DatabaseOnDisk.cpp:229: DB::DatabaseOnDisk::dropTable(DB::Context const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) @ 0x399321cb in /usr/bin/clickhouse
2020.08.25 01:50:28.392788 [ 601485 ] {} <Fatal> BaseDaemon: 5. /build/obj-x86_64-linux-gnu/../base/common/../ext/scope_guard.h:97: DB::DatabaseLazy::dropTable(DB::Context const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) @ 0x3a33c19f in /usr/bin/clickhouse
2020.08.25 01:50:28.397295 [ 601485 ] {} <Fatal> BaseDaemon: 6. /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:4206: DB::InterpreterDropQuery::executeToTable(DB::StorageID const&, DB::ASTDropQuery const&) @ 0x3a446e8a in /usr/bin/clickhouse
2020.08.25 01:50:28.401570 [ 601485 ] {} <Fatal> BaseDaemon: 7. /build/obj-x86_64-linux-gnu/../src/Interpreters/StorageID.h:31: DB::InterpreterDropQuery::execute() @ 0x3a441466 in /usr/bin/clickhouse
2020.08.25 01:50:28.406391 [ 601485 ] {} <Fatal> BaseDaemon: 8. /build/obj-x86_64-linux-gnu/../src/Interpreters/executeQuery.cpp:389: DB::executeQueryImpl(char const*, char const*, DB::Context&, bool, DB::QueryProcessingStage::Enum, bool, DB::ReadBuffer*) @ 0x3b394092 in /usr/bin/clickhouse
2020.08.25 01:50:28.411238 [ 601485 ] {} <Fatal> BaseDaemon: 9. /build/obj-x86_64-linux-gnu/../src/Interpreters/executeQuery.cpp:675: DB::executeQuery(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::Context&, bool, DB::QueryProcessingStage::Enum, bool) @ 0x3b38fb5d in /usr/bin/clickhouse
2020.08.25 01:50:28.419903 [ 601485 ] {} <Fatal> BaseDaemon: 10. /build/obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:253: DB::TCPHandler::runImpl() @ 0x3cd5a85c in /usr/bin/clickhouse
2020.08.25 01:50:29.136177 [ 601485 ] {} <Fatal> BaseDaemon: 11. /build/obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x3cd8773c in /usr/bin/clickhouse
2020.08.25 01:50:29.142779 [ 601485 ] {} <Fatal> BaseDaemon: 12. /build/obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x4701f2a1 in /usr/bin/clickhouse
2020.08.25 01:50:29.149571 [ 601485 ] {} <Fatal> BaseDaemon: 13. /build/obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerDispatcher.cpp:0: Poco::Net::TCPServerDispatcher::run() @ 0x470209a8 in /usr/bin/clickhouse
2020.08.25 01:50:29.156672 [ 601485 ] {} <Fatal> BaseDaemon: 14. /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x4748f8f6 in /usr/bin/clickhouse
2020.08.25 01:50:29.163568 [ 601485 ] {} <Fatal> BaseDaemon: 15. /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread.cpp:56: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x4748af71 in /usr/bin/clickhouse
2020.08.25 01:50:29.170637 [ 601485 ] {} <Fatal> BaseDaemon: 16. /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/include/Poco/AutoPtr.h:215: Poco::ThreadImpl::runnableEntry(void*) @ 0x4748711f in /usr/bin/clickhouse
2020.08.25 01:50:29.170866 [ 601485 ] {} <Fatal> BaseDaemon: 17. start_thread @ 0x9669 in /usr/lib/x86_64-linux-gnu/libpthread-2.30.so
2020.08.25 01:50:29.171001 [ 601485 ] {} <Fatal> BaseDaemon: 18. __clone @ 0x1222b3 in /usr/lib/x86_64-linux-gnu/libc-2.30.so

@alesapin alesapin mentioned this pull request Aug 25, 2020
40 tasks
@alesapin
Copy link
Member

Reported

@alesapin alesapin merged commit dffd0a8 into master Aug 25, 2020
@alesapin alesapin deleted the faster-test branch August 25, 2020 07:18
@alexey-milovidov
Copy link
Member Author

DatabaseLazy - it's using fragile design, @nikvas0 is going to fix.

@alesapin alesapin self-assigned this Aug 25, 2020
@qoega qoega mentioned this pull request Sep 2, 2020
73 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-not-for-changelog This PR should not be mentioned in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants