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

More explicit reason when failed to access to the Region of schema #8504

Closed
JaySon-Huang opened this issue Dec 12, 2023 · 1 comment · Fixed by #8571
Closed

More explicit reason when failed to access to the Region of schema #8504

JaySon-Huang opened this issue Dec 12, 2023 · 1 comment · Fixed by #8571
Assignees
Labels
component/storage type/enhancement The issue or PR belongs to an enhancement.

Comments

@JaySon-Huang
Copy link
Contributor

JaySon-Huang commented Dec 12, 2023

Enhancement

When tiflash can not connect to the Region of schema, it panics.
Because there could be some raft-log or snapshot to be applied from proxy to TiFlash, while TiFlash can not fetch the schema from TiKV.
The error message in this situation is too implicit and can not print the stack trace.

[2023/12/12 13:57:04.592 +00:00] [ERROR] [Exception.cpp:91] ["Poco::Exception. Code: 1000, e.code() = 14, e.displayText() = Exception: Region epoch not match after retries: Region {2988366876,36283,3252} not in region cache., e.what() = Exception"] [source="DB::RawCppPtr DB::PreHandleSnapshot(DB::EngineStoreServerWrap *, DB::BaseBuffView, uint64_t, DB::SSTViewVec, uint64_t, uint64_t)"] [thread_id=2688]

[2023/12/12 13:56:13.840 +00:00] [ERROR] [Exception.cpp:91] ["Poco::Exception. Code: 1000, e.code() = 14, e.displayText() = Exception: Region epoch not match after retries: Region {2988366876,36283,3252} not in region cache., e.what() = Exception"] [source="DB::EngineStoreApplyRes DB::HandleWriteRaftCmd(const DB::EngineStoreServerWrap *, DB::WriteCmdsView, DB::RaftCmdHeader)"] [thread_id=2673]


[2023/12/12 13:40:16.865 +00:00] [ERROR] [SchemaSyncService.cpp:101] ["Sync schemas failed by Exception: Region epoch not match after retries: Region {2988366876,36283,3252} not in region cache."] [source="keyspace=3490"] [thread_id=1608]

@JaySon-Huang JaySon-Huang added the type/enhancement The issue or PR belongs to an enhancement. label Dec 12, 2023
@JaySon-Huang
Copy link
Contributor Author

similar issue for failed to connect to PD: #8323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/storage type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant