Skip to content

Failed to start TiFlash when some CPUs are offline  #9212

@Lloyd-Pottiger

Description

@Lloyd-Pottiger

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

In a machine with 72 logical cpu cores, and let 64 of them off-line.

6qzOnG0kEG

2. What did you expect to see? (Required)

Start TiFlash successfully.

3. What did you see instead (Required)

[2024/07/10 14:55:07.141 +08:00] [ERROR] [BaseDaemon.cpp:495] ["Integer divide by zero."] [source=BaseDaemon] [thread_id=2][2024/07/10 14:55:10.890 +08:00] [ERROR] [BaseDaemon.cpp:560] ["\n  0x563cb525a5ce\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+123495886]\n                \tlibs/libdaemon/src/BaseDaemon.cpp:211\n  0x7fda5033b630\t<unknown symbol> [libpthread.so.0+63024]\n  0x563cafc6e83e\tcomputeAndSetNumberOfPhysicalCPUCores(unsigned short, unsigned short) [tiflash+33400894]\n                \tdbms/src/Common/getNumberOfCPUCores.cpp:66\n  0x563cafc39345\tDB::Server::main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const&) [tiflash+33182533]\n                \tdbms/src/Server/Server.cpp:1077\n  0x563cb6fc7776\tPoco::Util::Application::run() [tiflash+154351478]\n                \tcontrib/poco/Util/src/Application.cpp:335\n  0x563cafc3306f\tDB::Server::run() [tiflash+33157231]\n                \tcontrib/poco/Util/src/ServerApplication.cpp:94\n  0x563cafc4c562\tmainEntryClickHouseServer(int, char**) [tiflash+33260898]\n                \tdbms/src/Server/Server.cpp:1855\n  0x563cafb82010\tmain [tiflash+32432144]\n                \tdbms/src/Server/main.cpp:172\n  0x7fda4faaa555\t__libc_start_main [libc.so.6+140629]"] [source=BaseDaemon] [thread_id=2]
[2024/07/10 14:55:34.790 +08:00] [INFO] [BaseDaemon.cpp:1175] ["Welcome to TiFlash"] [thread_id=1][2024/07/10 14:55:34.790 +08:00] [INFO] [BaseDaemon.cpp:1178] ["TiFlash build info: TiFlash\nRelease Version: v8.2.0-alpha-90-g914aaf71a\nEdition:         Community\nGit Commit Hash: 914aaf71ae9ffae2b9162dbf77c451bf5872ba2f\nGit Branch:      HEAD\nUTC Build Time:  2024-07-10 02:11:01\nEnable Features: jemalloc sm4(GmSSL) avx2 avx512 unwind thinlto\nProfile:         RELWITHDEBINFO\nCompiler:        clang++ 17.0.6\n"] [thread_id=1]

4. What is your TiFlash version? (Required)

master

Metadata

Metadata

Labels

affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.component/computeseverity/majortype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions