Skip to content

kvserver/closedts: fix nil dereference in HTML generation#68637

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
erikgrinaker:closedts-debug-nil-update
Aug 10, 2021
Merged

kvserver/closedts: fix nil dereference in HTML generation#68637
craig[bot] merged 1 commit intocockroachdb:masterfrom
erikgrinaker:closedts-debug-nil-update

Conversation

@erikgrinaker
Copy link
Copy Markdown
Contributor

The /debug/closedts-{sender,receiver} endpoints could panic due to a
nil dereference if the last update in the sidetransport buffer was
removed by the time it was rendered. This patch adds a nil check to
avoid that panic.

Release note (bug fix): Fixed a crash in the
/debug/closedts-{sender,receiver} advanced debug pages if the last
message of the closed timestamp side transport buffer was removed before
rendering.

The `/debug/closedts-{sender,receiver}` endpoints could panic due to a
nil dereference if the last update in the sidetransport buffer was
removed by the time it was rendered. This patch adds a `nil` check to
avoid that panic.

Release note (bug fix): Fixed a crash in the
`/debug/closedts-{sender,receiver}` advanced debug pages if the last
message of the closed timestamp side transport buffer was removed before
rendering.
@erikgrinaker erikgrinaker requested a review from a team August 10, 2021 09:29
@erikgrinaker erikgrinaker self-assigned this Aug 10, 2021
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@aliher1911 aliher1911 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @erikgrinaker)

@erikgrinaker
Copy link
Copy Markdown
Contributor Author

bors r=aliher1911

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 10, 2021

Build failed:

@erikgrinaker
Copy link
Copy Markdown
Contributor Author

bors r=aliher1911

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 10, 2021

Build succeeded:

@craig craig bot merged commit f28f98f into cockroachdb:master Aug 10, 2021
@erikgrinaker erikgrinaker deleted the closedts-debug-nil-update branch August 23, 2021 09:02
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.

3 participants