Skip to content

Commit 8a1dba1

Browse files
ekexiumclaude
andcommitted
region_request: log unknown region error for debugging
When regionErrorToLabel returns "unknown", it means the error type is not recognized. Add an INFO log to capture the full error content, which helps identify new error types that should be handled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9dd1b8e commit 8a1dba1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/locate/region_request.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,6 +1905,7 @@ func regionErrorToLabel(e *errorpb.Error) string {
19051905
} else if e.GetUndeterminedResult() != nil {
19061906
return "undetermined_result"
19071907
}
1908+
logutil.BgLogger().Info("unknown region error", zap.Stringer("error", e))
19081909
return "unknown"
19091910
}
19101911

0 commit comments

Comments
 (0)