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

release-20.1: kv: elide truncation decision assert #47346

Merged

Conversation

irfansharif
Copy link
Contributor

See the discussion in #47143. We previously asserted on the
invariants we expected the truncation decision to uphold. This was
unfortunately more fragile than anticipated, and it's safer to remove it
in the v20.1.0 release as we expect the panic to fire under normal
operating conditions. A more hardened panic condition is going bake in
master in the interim (#47143). As we build confidence with that patch,
we can consider re-adding the assert to v20.1.1 if needed.

Release note (bug fix): Remove a panic that would fire under
normal operating conditions. Would result in "invalid truncation
decision" error messages.

See the discussion in cockroachdb#47143. We previously asserted on the
invariants we expected the truncation decision to uphold. This was
unfortunately more fragile than anticipated, and it's safer to remove it
in the v20.1.0 release as we expect the panic to fire under normal
operating conditions. A more hardened panic condition is going bake in
master in the interim (cockroachdb#47143). As we build confidence with that patch,
we can consider re-adding the assert to v20.1.1 if needed.

Release note (bug fix): Remove a panic that would fire under
normal operating conditions. Would result in "invalid truncation
decision" error messages.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@irfansharif
Copy link
Contributor Author

Feel free to reject this patch. My argument here is the asserts were introduced without any behavioral changes around log truncations this release. See #42495. Removing the panics, I don't think, causes any other faulty downstream behavior.

Copy link
Member

@nvanbenschoten nvanbenschoten left a comment

Choose a reason for hiding this comment

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

:lgtm: I'm ok with getting this in to the release. We know that the previous assertions are faulty and have known false positives, so this seems like a low-risk way to mitigate them for the first patch release.

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

Copy link
Member

@nvanbenschoten nvanbenschoten left a comment

Choose a reason for hiding this comment

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

s/them for the first patch release/them until the first patch release/

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

@irfansharif
Copy link
Contributor Author

Excellent, will just have to remember to cherry-pick #47143 when cutting out v20.1.1.

@irfansharif irfansharif merged commit b1d5fdf into cockroachdb:release-20.1 Apr 10, 2020
@irfansharif irfansharif deleted the backport20.1-47143 branch April 10, 2020 22:28
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.

None yet

3 participants