tikv / tikv/pd

Log information for validating region request is not so readable

Open
#4,914 0 comments 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

PD makes some errors when the region request is not valid, such as ""invalid region epoch, request: conf_ver:288923 version:7320160 , currenrt: conf_ver:288923 version:7320162 " and it sends this error to TiKV. Tikv logs the error message like " ["ask batch split failed"] [err="Grpc(RpcFailure(RpcStatus { status: 2-UNKNOWN, details: Some(\"invalid region epoch, request: conf_ver:288923 version:7320160 , currenrt: conf_ver:288923 version:7320162 \") }))"] [region_id=56125222]", it misleads users to think that the current version on TiKV is 7320162 which actually is the region version in PD.

Contributor guide

Open the contributing guide

Research direction

Trace how the invalid region epoch error is formatted in PD and then emitted in TiKV logs; no specific files or tests are named in the issue. The change is complete when the log clearly distinguishes the request's region version from the current version and no longer misleads users.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.