【 TiDB 使用环境】ubuntu1804测试
【 TiDB 版本】7.6.0
【复现路径】
root安装、启动
tiup playground -T 20240311-tidb-test启动后,生成示例数据:tiup bench tpch --sf=1 prepare,然后指定创建tiflash副本:
ALTER TABLE test.customer SET TIFLASH REPLICA 1;
ALTER TABLE test.orders SET TIFLASH REPLICA 1;
ALTER TABLE test.lineitem SET TIFLASH REPLICA 1;
【遇到的问题:问题现象及影响】
报错:
tiflash quit: signal: segmentation fault (core dumped)
[2024/03/13 10:30:13.044 +08:00] [INFO] [SegmentReader.cpp:86] [“Pop fail, stop=true”] [thread_id=4]
[2024/03/13 10:30:13.045 +08:00] [INFO] [SegmentReader.cpp:86] [“Pop fail, stop=true”] [thread_id=5]
[2024/03/13 10:30:13.045 +08:00] [INFO] [SegmentReader.cpp:86] [“Pop fail, stop=true”] [thread_id=6]
[2024/03/13 10:30:13.045 +08:00] [INFO] [SegmentReader.cpp:86] [“Pop fail, stop=true”] [thread_id=2]
[2024/03/13 10:30:13.045 +08:00] [DEBUG] [SegmentReader.cpp:45] [Stopped] [thread_id=58]
[2024/03/13 10:30:13.045 +08:00] [DEBUG] [SegmentReader.cpp:45] [Stopped] [thread_id=58]
[2024/03/13 10:30:13.045 +08:00] [DEBUG] [SegmentReader.cpp:45] [Stopped] [thread_id=58]
[2024/03/13 10:30:13.045 +08:00] [DEBUG] [SegmentReader.cpp:45] [Stopped] [thread_id=58]
[2024/03/13 10:30:13.045 +08:00] [DEBUG] [SegmentReader.cpp:45] [Stopped] [thread_id=58]
[2024/03/13 10:30:13.045 +08:00] [DEBUG] [SegmentReader.cpp:45] [Stopped] [thread_id=58]
…
check detail log from: /root/.tiup/data/20240311-test/tiflash-0/tiflash.log
报错后,tiflash宕机。
【资源配置】
【附件:截图/日志/监控】
日志:tiflash_error.log
[2024/03/13 10:30:13.042 +08:00] [FATAL] [Exception.cpp:106] [“Poco::Exception. Code: 1000, e.code() = 13, e.displayText() = Access to file denied: /root/.tiup/data/20240311-test/tiflash-0/data/data/t_118/stable/.tmp.dmf_1, e.what() = Access to file denied”] [source=“DB::RawCppPtr DB::PreHandleSnapshot(DB::EngineStoreServerWrap *, DB::BaseBuffView, uint64_t, DB::SSTViewVec, uint64_t, uint64_t)”] [thread_id=58]
我递归修改.tmp.dmf_1文件夹的权限,发现重新启动后权限被重置。