*: add log for bootstrap part and init USR1 single handler early to help diagnose#61997
Conversation
|
Hi @D3Hunter. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #61997 +/- ##
================================================
+ Coverage 72.9521% 75.3512% +2.3990%
================================================
Files 1735 1781 +46
Lines 482252 495302 +13050
================================================
+ Hits 351813 373216 +21403
+ Misses 108866 99112 -9754
- Partials 21573 22974 +1401
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
lance6716
left a comment
There was a problem hiding this comment.
/hold
free to unhold after address comment
| // all the goroutines. Start with 1 MB and try a few times, doubling each time. | ||
| // Give up and use a truncated trace if 64 MB is not enough. | ||
| buf := make([]byte, 1<<20) | ||
| for i := 0; ; i++ { |
There was a problem hiding this comment.
copied from golang source code, will keep it as long as ci pass
[LGTM Timeline notifier]Timeline:
|
|
/approve |
|
/unhold |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: D3Hunter, lance6716, tiancaiamao, yudongusa The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What problem does this PR solve?
Issue Number: ref #61702
Problem Summary:
What changed and how does it work?
when the only instance set
tidb-enable-ddl = false, it will block on bootstrap, or the keyspace doesn't created on PD, it will block on creating store, but we don't know where, as there is no log, and we cannot get stack as the signal handler hasn't been setup and the server hasn't started yet, so we add this pr to help diagnose.Check List
Tests
run a single tidb-server for some keyspace, and set
tidb-enable-ddl = false, we can see from logrun tidb-server with a un-registered keyspace, tidb will retry on get keyspace meta
from log we can see it meet ErrKeyspaceNotFound error, and retry
kill -USR1, we can see the stackSide effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.