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

cli/start: make SIGQUIT dump the stacks #36378

Merged
merged 1 commit into from
Mar 9, 2020
Merged

Conversation

knz
Copy link
Contributor

@knz knz commented Apr 1, 2019

Fixes #45875.

What: in the title.

Why: the Go standard behavior is to dump stacks upon SIGQUIT.
This had been disabled since crdb v1.0 but is really useful
to troubleshoot hanging servers.

Release note (cli change): CockroachDB will now dump the stacks of all
goroutines upon receiving SIGQUIT prior to terminating. This feature
is intended for use while troubleshooting misbehaving nodes.

@knz knz requested a review from BramGruneir April 1, 2019 14:27
@knz knz requested a review from a team as a code owner April 1, 2019 14:27
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz
Copy link
Contributor Author

knz commented Apr 1, 2019

cc @bdarnell

@knz knz requested a review from tbg April 1, 2019 14:28
@tbg
Copy link
Member

tbg commented Apr 1, 2019

Thanks for the PR!

I commented on #35476 for general understanding for why we want this on top of the existing methods of introspecting the goroutines.

Re: not exiting on SIGQUIT, this might be normal in Java but it's not normal in Go and also not normal according to wikipedia: https://en.wikipedia.org/wiki/Signal_(IPC)#SIGQUIT

Overall my preference here is to solve the demand for this feature in a more ergonomical way, though I don't yet understand what the problem to be solved is. I'll wait until I learn about that before making any recommendations on what to do.

@tbg tbg removed their request for review June 19, 2019 14:23
@tbg tbg added the X-noremind Bots won't notify about PRs with X-noremind label Jun 19, 2019
@knz knz closed this Aug 2, 2019
@knz knz deleted the 20190401-cli-sig branch August 2, 2019 02:49
@knz knz restored the 20190401-cli-sig branch March 9, 2020 15:25
@knz knz reopened this Mar 9, 2020
@knz knz requested review from tbg and removed request for BramGruneir March 9, 2020 16:11
@knz knz removed the X-noremind Bots won't notify about PRs with X-noremind label Mar 9, 2020
@knz knz changed the title util/log: make SIGQUIT dump stacks without quitting cli/start: make SIGQUIT dump the stacks Mar 9, 2020
@knz
Copy link
Contributor Author

knz commented Mar 9, 2020

RFAL

What: in the title.

Why: the Go standard behavior is to dump stacks upon SIGQUIT.
This had been disabled since crdb v1.0 but is really useful
to troubleshoot hanging servers.

Release note (cli change): CockroachDB will now dump the stacks of all
goroutines upon receiving SIGQUIT prior to terminating. This feature
is intended for use while troubleshooting misbehaving nodes.
@knz knz merged commit c783185 into cockroachdb:master Mar 9, 2020
@knz knz deleted the 20190401-cli-sig branch March 9, 2020 16:58
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.

cli: SIGQUIT does not dump stack any more
3 participants