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] space management bug fixes and logging improvements #11768

Merged
merged 3 commits into from
Jun 29, 2023

Conversation

dotnwat
Copy link
Member

@dotnwat dotnwat commented Jun 29, 2023

  • Improves logging
  • Fixed a bug causing reclaim to run slower than expected
  • Decreased control loop frequency which was low because of said bug
  • Tighten up the test timeout which was also high because of the bug

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.1.x
  • v22.3.x
  • v22.2.x

Release Notes

  • none

Info level is yes likely too high for some of these. But it only runs in
low-disk situations, and is useful in the short term to have for
debugging.

Signed-off-by: Noah Watkins <[email protected]>
1. Was only choosing the offset of the first eligible segment
2. Was only reporting one segment from each partition as eligible

Taken together, the reclaim rate was depending on how often the control
loop ran rather than how fast data was uploaded into the cloud.

Signed-off-by: Noah Watkins <[email protected]>
This is now possible by fixing the bug in the previous commit. Also
reducing the timeout on the test because it works much better without
that previous bug!

Signed-off-by: Noah Watkins <[email protected]>
Copy link
Contributor

@andrwng andrwng left a comment

Choose a reason for hiding this comment

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

Nice finds!

@@ -593,4 +593,4 @@ def target_size_reached():
return total < (15 * 2**20 + 2 * self.log_segment_size)

# give it plenty of time. on debug it is hella slow
Copy link
Contributor

Choose a reason for hiding this comment

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

B-)

@dotnwat dotnwat merged commit d761026 into redpanda-data:dev Jun 29, 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.

2 participants