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

Slow log's Backoff_total item is not accurate #58756

Open
Tracked by #56232
yibin87 opened this issue Jan 7, 2025 · 1 comment
Open
Tracked by #56232

Slow log's Backoff_total item is not accurate #58756

yibin87 opened this issue Jan 7, 2025 · 1 comment
Assignees
Labels
type/bug The issue is confirmed as a bug.

Comments

@yibin87
Copy link
Contributor

yibin87 commented Jan 7, 2025

In the slow log file, the Backoff_total item is less than the Cop_backoff_regionMiss_total_time item, which is unexpected:
Cop_backoff_regionMiss_total_times: 907407 Cop_backoff_regionMiss_total_time: 2290.796 Cop_backoff_regionMiss_max_time: 8.01 Cop_backoff_regionMiss_max_addr: 214.170.4.81:20161 Cop_backoff_regionMiss_avg_time: 0.002532962 Cop_backoff_regionMiss_p90_time: 0.002
Backoff_total: 1892.664

From the client-go code, it seems the bo's context lacks "util.ExecDetailsKey" in some situation:
https://github.com/tikv/client-go/blob/2eba2f614b38e2905cc46ea8f0fc6d40ed6a0ccf/config/retry/backoff.go#L207-L218

@yibin87 yibin87 added the type/bug The issue is confirmed as a bug. label Jan 7, 2025
@yibin87
Copy link
Contributor Author

yibin87 commented Jan 7, 2025

/assign @yibin87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

1 participant