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

cloud_storage: Remove stuck reader exception #12471

Closed

Conversation

Lazin
Copy link
Contributor

@Lazin Lazin commented Jul 26, 2023

Remove unused exception and the code that handles it. This PR also includes some followup changes from previous PR:

  • in the remote_partition use with_manifest to call initialize_reader_state to avoid potential race condition.
  • in the task_local add new c-tor that accepts std::in_place_t + list of parameters to construct underlying value.

Backports Required

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

Release Notes

  • none

The exception is no longer used and therefore there is no need to handle
it. The EOF condition is handled differently and the transition to the
next segment can no longer get stuck because the reader caches the
base_offset of the next segment.
VladLazar
VladLazar previously approved these changes Jul 26, 2023
Copy link
Contributor

@VladLazar VladLazar left a comment

Choose a reason for hiding this comment

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

LGTM


template<class... Args>
explicit task_local(std::in_place_t, Args... args)
: _val(std::in_place, args...)
Copy link
Contributor

Choose a reason for hiding this comment

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

should be Args&&... args and std::forward(args)...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

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

Add c-tor overload that takes std::in_place_t and list of parameters for
the underlying type.
@Lazin Lazin force-pushed the pr/remove-stuck-reader-exception branch from 76f4dc9 to 3695911 Compare August 3, 2023 09:40
@Lazin Lazin closed this Aug 31, 2023
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.

3 participants