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

add more log for diagnose #914

Merged
merged 11 commits into from
Jul 31, 2023
Merged

Conversation

crazycs520
Copy link
Contributor

@crazycs520 crazycs520 commented Jul 26, 2023

cherry-pick: #915

Add more logs for diagnose.

Here some log example:

[2023/07/31 14:00:20.505 +08:00] [WARN] [region_request.go:614] ["unable to find stores with given labels"] [region=17] [leader-invalid=false] [labels="[{\"key\":\"zone\",\"value\":\"z99\"}]"]
[2023/07/31 13:57:29.333 +08:00] [INFO] [region_cache.go:2483] ["change store resolve state"] [store=5] [addr=10.0.1.9:20161] [from=needCheck] [to=resolved] [liveness-state=unreachable]
[2023/07/31 13:59:34.977 +08:00] [WARN] [backoff.go:172] ["regionMiss backoffer.maxSleep 40000ms is exceeded, errors:\nepoch_not_match:<>  at 2023-07-31T13:59:33.472306+08:00\nepoch_not_match:<>  at 2023-07-31T13:59:33.973395+08:00\nepoch_not_match:<>  at 2023-07-31T13:59:34.476155+08:00\ntotal-backoff-times: 87, backoff-detail: regionMiss:87\nlongest sleep type: regionMiss, time: 40010ms"]
[2023/07/31 13:56:11.856 +08:00] [INFO] [region_request.go:1252] ["throwing pseudo region error due to no replica available"] [req-ts=443228608411205633] [req-type=Cop] [region="{ region id: 225, ver: 83, confVer: 11 }"] [region-is-valid=false] [retry-times=3] [replica-read-type=leader] [replica-selector-state=tryFollower] [stale-read=false] [replica-status="peer: 226, store: 5, isEpochStale: false, attempts: 1, replica-epoch: 1, store-epoch: 1, store-state: resolved, store-liveness-state: reachable; peer: 227, store: 4, isEpochStale: false, attempts: 1, replica-epoch: 1, store-epoch: 1, store-state: resolved, store-liveness-state: reachable; peer: 228, store: 16, isEpochStale: false, attempts: 1, replica-epoch: 1, store-epoch: 1, store-state: resolved, store-liveness-state: reachable"] [total-backoff-ms=11078] [total-backoff-times=38] [total-region-errors=not_leader:3]

Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
@crazycs520 crazycs520 marked this pull request as ready for review July 26, 2023 08:28
@crazycs520
Copy link
Contributor Author

@cfzjywxk @zyguan @you06 PTAL

Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
@cfzjywxk
Copy link
Contributor

@crazycs520
The master PR is also needed.

@cfzjywxk
Copy link
Contributor

@crazycs520
It seems that the OnRegionError part logs are missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants