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

storage: protect optional access #7655

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

abhijat
Copy link
Contributor

@abhijat abhijat commented Dec 8, 2022

A segment index position behind optional is accessed in a log. A check is added in this commit to make sure the access is safe.

Backports Required

  • none - not a bug fix
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v22.3.x
  • v22.2.x
  • v22.1.x

Release Notes

Bug Fixes

  • storage: protect optional access

index position behind optional is accessed in a log. A check is added in
this commit to make sure the access is safe.
@abhijat abhijat marked this pull request as ready for review December 8, 2022 10:32
Copy link
Contributor

@andijcr andijcr left a comment

Choose a reason for hiding this comment

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

LGTM

@abhijat abhijat merged commit 73ace0e into redpanda-data:dev Dec 8, 2022
@abhijat
Copy link
Contributor Author

abhijat commented Dec 8, 2022

/backport v22.3.x

@andrewhsu
Copy link
Member

@abhijat fyi i updated the PR body to add release notes section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants