Skip to content

[next gen] TiFlash crash for unsupported admin command type TransferLeader #10734

@lilinghai

Description

@lilinghai

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

[2026/03/06 06:02:16.864 +08:00] [FATAL] [Exception.cpp:98] ["Code: 49, e.displayText() = DB::Exception: unsupported admin command type TransferLeader, e.what() = DB::Exception, Stack trace:\n\n\n  0x55c6840a1f33\tDB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, int) [tiflash+37682995]\n                \tdbms/src/Common/StackTrace.cpp:25\n  0x55c68bc1638f\tDB::RegionRaftCommandDelegate::handleAdminRaftCmd(raft_cmdpb::AdminRequest const&, raft_cmdpb::AdminResponse const&, unsigned long, unsigned long, DB::KVStore const&, DB::RegionTable&, DB::RaftCommandResult&) [tiflash+167134095]\n                \tdbms/src/Storages/KVStore/MultiRaft/RaftCommands.cpp:280\n  0x55c68bc1edbb\tDB::KVStore::handleAdminRaftCmd(raft_cmdpb::AdminRequest&&, raft_cmdpb::AdminResponse&&, unsigned long, unsigned long, unsigned long, DB::TMTContext&) [tiflash+167169467]\n                \tdbms/src/Storages/KVStore/MultiRaft/RaftCommandsKVS.cpp:221\n  0x55c68bba8a69\tHandleAdminRaftCmd [tiflash+166685289]\n                \tdbms/src/Storages/KVStore/FFI/ProxyFFI.cpp:123\n  0x7fc5efd43791\tproxy_ffi::engine_store_helper_impls::_$LT$impl$u20$proxy_ffi..interfaces..root..DB..EngineStoreServerHelper$GT$::handle_admin_raft_cmd::h9c07ce60e70cf0c9 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+26273681]\n  0x7fc5efe5e8ae\t_$LT$engine_store_ffi..observer..TiFlashObserver$LT$T$C$ER$GT$$u20$as$u20$raftstore..coprocessor..AdminObserver$GT$::post_exec_admin::h3efae9ab297f22e1 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+27433134]\n  0x7fc5f0c1c740\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::process_raft_cmd::hccf4673cefb05378 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+41842496]\n  0x7fc5f0c24123\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::handle_raft_committed_entries::h99122f5e14aa60c4 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+41873699]\n  0x7fc5f0bfd139\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_apply::h5ebdbdc48ab0c9d5 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+41713977]\n  0x7fc5f0c01993\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_tasks::h297e23ede1b5b1f0 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+41732499]\n  0x7fc5eff6cbe5\t_$LT$raftstore..store..fsm..apply..ApplyPoller$LT$EK$GT$$u20$as$u20$batch_system..batch..PollHandler$LT$raftstore..store..fsm..apply..ApplyFsm$LT$EK$GT$$C$raftstore..store..fsm..apply..ControlFsm$GT$$GT$::handle_normal::h94499c390d84dbe7 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+28539877]\n  0x7fc5efedfa25\tbatch_system::batch::Poller$LT$N$C$C$C$Handler$GT$::poll::h3cfc6addfa4de40c [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+27961893]\n  0x7fc5effa4945\tstd::sys_common::backtrace::__rust_begin_short_backtrace::h20f7ac87f05251c9 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+28768581]\n  0x7fc5efff6e89\tcore::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h28a824920b627230 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+29105801]\n  0x7fc5f1560246\tstd::sys::unix::thread::Thread::new::thread_start::hd01330a228cdd35d [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+51556934]\n                \t/rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/sys/unix/[thread.rs:108](http://thread.rs:108/)\n  0x7fc5ee0f02ea\tstart_thread [libc.so.6+570090]\n  0x7fc5ee1753c0\t__GI___clone3 [libc.so.6+1115072]"] [source="EngineStoreApplyRes DB::HandleAdminRaftCmd(const EngineStoreServerWrap *, BaseBuffView, BaseBuffView, RaftCmdHeader)"] [thread_id=67]

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

3. What did you see instead (Required)

4. What is your TiFlash version? (Required)

Welcome to TiFlash"] [thread_id=1]
TiFlash build info: TiFlash\nRelease Version: v9.0.0-beta.2.pre-126-g661e9b588\nEdition: Enterprise\nGit Commit Hash: 661e9b5\nG
p"] [source=Application]

> select type,version,git_hash from information_schema.cluster_info group by type,version,git_hash;
+-----------------+---------------------------------+------------------------------------------+
| type            | version                         | git_hash                                 |
+-----------------+---------------------------------+------------------------------------------+
| tidb            | 9.0.0-beta.2.pre-1302-g4d4043c  | 4d4043c799c996eee06f8a2e8ee99d67937add12 |
| tso             | 9.0.0-beta.2.pre-308-g79149a2   | 79149a25abce3a8d41fa3e59a600afab58b3ebb4 |
| tikv            | 8.5.4+branch-HEAD               | cc9576a432ae60f23bed70dcb3bbca0aaa0f9671 |
| pd              | 9.0.0-beta.2.pre-308-g79149a2   | 79149a25abce3a8d41fa3e59a600afab58b3ebb4 |
| tiflash_write   | 9.0.0-beta.2.pre-126-g661e9b588 | 661e9b5887144636797a3e6e583d5a383ebfd17e |
| tiflash_compute | 9.0.0-beta.2.pre-126-g661e9b588 | 661e9b5887144636797a3e6e583d5a383ebfd17e |
| scheduling      | 9.0.0-beta.2.pre-308-g79149a2   | 79149a25abce3a8d41fa3e59a600afab58b3ebb4 |
+-----------------+---------------------------------+------------------------------------------+

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/storagenextgenIndicates that the Issue or PR belongs to the nextgen kernel architecture.severity/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