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

TiFlash crash for invalid flag F in lock value #7563

Closed
lilinghai opened this issue May 30, 2023 · 1 comment · Fixed by #7569 or #9214
Closed

TiFlash crash for invalid flag F in lock value #7563

lilinghai opened this issue May 30, 2023 · 1 comment · Fixed by #7569 or #9214

Comments

@lilinghai
Copy link

lilinghai commented May 30, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

ddl case

[2023/05/30 10:58:43.621 +08:00] [ERROR] [Exception.cpp:90] ["Code: 49, e.displayText() = DB::Exception: invalid flag F in lock value 533A74800000000000005C5F720380000000000000300380000000000000039080A0CE94ABE9900688AC01660621A5597584000C630621A5599BCC00046C0621A5597584000C0146, e.what() = DB::Exception, Stack trace:
       0x1c206ce    DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) [tiflash+29492942]
                    dbms/src/Common/Exception.h:46
       0x8076333    DB::RecordKVFormat::decodeLockCfValue(DB::RecordKVFormat::DecodedLockCFValue&) [tiflash+134701875]
                    dbms/src/Storages/Transaction/TiKVRecordFormat.cpp:123
       0x7feab1d    DB::RegionCFDataBase<DB::RegionLockCFDataTrait>::insert(DB::StringObject<true>&&, DB::StringObject<false>&&, DB::DupCheck) [tiflash+134130461]
                    dbms/src/Storages/Transaction/RegionCFDataBase.cpp:57
       0x7fe0015    auto DB::Region::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, DB::TMTContext&)::$_14::operator()<unsigned long>(unsigned long) const [tiflash+134086677]
                    dbms/src/Storages/Transaction/Region.cpp:648
       0x7fdef92    DB::Region::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, DB::TMTContext&) [tiflash+134082450]
                    dbms/src/Storages/Transaction/Region.cpp:714
       0x7f9d8ee    DB::KVStore::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, unsigned long, DB::TMTContext&) const [tiflash+133814510]
                    dbms/src/Storages/Transaction/KVStore.cpp:297
       0x7fbd075    HandleWriteRaftCmd [tiflash+133943413]
                    dbms/src/Storages/Transaction/ProxyFFI.cpp:97
  0x7f14a0ac7b98    _$LT$engine_store_ffi..observer..TiFlashObserver$LT$T$C$ER$GT$$u20$as$u20$raftstore..coprocessor..QueryObserver$GT$::post_exec_query::h7baebf297f3c710d [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+24021912]
  0x7f14a19dec1d    raftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::apply_raft_cmd::h25535f78b2e0a609 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+39844893]
  0x7f14a19f8598    raftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::process_raft_cmd::h61e8e50fe51b205f [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+39949720]
  0x7f14a19fdee4    raftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::handle_raft_committed_entries::h5998616c7ccbd00a [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+39972580]
  0x7f14a19cf1cc    raftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_apply::hdf9cbdff9eae6fb5 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+39780812]
  0x7f14a19d3721    raftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_tasks::hf5349c3a9c0f2237 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+39798561]
  0x7f14a0bab98e    _$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::h95c5548f3d56678b [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+24955278]
  0x7f14a0b18393    batch_system::batch::Poller$LT$N$C$C$C$Handler$GT$::poll::h55f624a09f386174 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+24351635]
  0x7f14a0c0fc18    std::sys_common::backtrace::__rust_begin_short_backtrace::h16cb33ef4f63f5a9 [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+25365528]
  0x7f14a0c596fe    core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h3daa0229b294447f [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+25667326]
  0x7f14a219d2f5    std::sys::unix::thread::Thread::new::thread_start::hd2791a9cabec1fda [[libtiflash_proxy.so](http://libtiflash_proxy.so/)+47964917]
                    /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/sys/unix/[thread.rs:108](http://thread.rs:108/)
  0x7f149f0ae802    start_thread [libc.so.6+653314]
  0x7f149f04e314    __GI___clone [libc.so.6+258836]"] [source="DB::EngineStoreApplyRes DB::HandleWriteRaftCmd(const DB::EngineStoreServerWrap *, DB::WriteCmdsView, DB::RaftCmdHeader)"] [thread_id=102]

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

3. What did you see instead (Required)

4. What is your TiFlash version? (Required)

master
[2023/05/30 01:22:12.505 +08:00] [INFO] [client.go:509] ["Cluster version information"] [type=tikv] [version=7.2.0-alpha] [git_hash=a24d9d6838603b2b274376e52f92f67a10fecd84]
[2023/05/30 01:22:12.505 +08:00] [INFO] [client.go:509] ["Cluster version information"] [type=pd] [version=7.2.0-alpha] [git_hash=a432973740d5c80f3c80ec0de916937f805f971c]
[2023/05/30 01:22:12.505 +08:00] [INFO] [client.go:509] ["Cluster version information"] [type=tiflash] [version=7.2.0-alpha] [git_hash=f794c8f7fc19bd3fa04cbbf4e201d70bae0cb8fe]
[2023/05/30 01:22:12.505 +08:00] [INFO] [client.go:509] ["Cluster version information"] [type=tidb] [version=7.2.0-alpha] [git_hash=10e6e427303e02e0cb0101bb4bf9d8df32c36bc8]

@lilinghai lilinghai added the type/bug The issue is confirmed as a bug. label May 30, 2023
@CalvinNeo
Copy link
Member

Caused by tikv/tikv#14692

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants