Skip to content

cli,server: log the initiation of shutdown more clearly#106609

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
knz:20230711-shutdown-cause
Jul 12, 2023
Merged

cli,server: log the initiation of shutdown more clearly#106609
craig[bot] merged 1 commit intocockroachdb:masterfrom
knz:20230711-shutdown-cause

Conversation

@knz
Copy link
Copy Markdown
Contributor

@knz knz commented Jul 11, 2023

Epic: CRDB-26691
Helped debug issues with #96144.

Prior to this patch, the error object that triggers spontaneous shutdown and flows through the stopTrigger was only kept in RAM and printed at the very tail end of server shutdown (when the CLI code was exiting).

This patch ensures it is logged as soon as the shutdown is triggered. It makes debugging slightly easier.

Release note: None

@knz knz requested review from stevendanna and yuzefovich July 11, 2023 18:12
@knz knz requested review from a team as code owners July 11, 2023 18:12
@knz knz requested review from herkolategan and renatolabs and removed request for a team July 11, 2023 18:12
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@knz knz added the backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only label Jul 11, 2023
@knz knz force-pushed the 20230711-shutdown-cause branch from aad4c3b to 3fb0788 Compare July 11, 2023 18:14
Copy link
Copy Markdown
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @herkolategan, @renatolabs, and @stevendanna)

Prior to this patch, the error object that triggers spontaneous
shutdown and flows through the `stopTrigger` was only kept in RAM and
printed at the very tail end of server shutdown (when the CLI code was
exiting).

This patch ensures it is logged as soon as the shutdown is triggered.
It makes debugging slightly easier.

Release note: None
@knz knz force-pushed the 20230711-shutdown-cause branch from 3fb0788 to 554ff40 Compare July 12, 2023 07:02
@knz
Copy link
Copy Markdown
Contributor Author

knz commented Jul 12, 2023

TFYR!

bors r=yuzefovich

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 12, 2023

Build succeeded:

@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Jul 12, 2023

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error setting reviewers, but backport branch blathers/backport-release-23.1-106609 is ready: POST https://api.github.com/repos/cockroachdb/cockroach/pulls/106665/requested_reviewers: 422 Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the cockroachdb/cockroach repository. []

Backport to branch 23.1.x failed. See errors above.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@knz knz deleted the 20230711-shutdown-cause branch July 12, 2023 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants