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

samplers: Fix off by one shard id check #23946

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

StephanDollberg
Copy link
Member

@StephanDollberg StephanDollberg commented Oct 29, 2024

Fixes an off by one when validating the shard id in both the memory and
cpu profiler.

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

Release Notes

  • none

@StephanDollberg StephanDollberg force-pushed the stephan/mem-sampler-off-by-1-admin branch 2 times, most recently from cea516d to 0f66c05 Compare October 29, 2024 14:52
@redpanda-data redpanda-data deleted a comment from vbotbuildovich Oct 30, 2024
@redpanda-data redpanda-data deleted a comment from vbotbuildovich Oct 30, 2024
@StephanDollberg StephanDollberg force-pushed the stephan/mem-sampler-off-by-1-admin branch from 0f66c05 to 667cb6c Compare October 30, 2024 11:25
@StephanDollberg StephanDollberg marked this pull request as ready for review October 30, 2024 11:26
Fixes an off by one when validating the shard id in both the memory and
cpu profiler.
@StephanDollberg StephanDollberg force-pushed the stephan/mem-sampler-off-by-1-admin branch from 35a100f to 4e3aec9 Compare October 31, 2024 10:14
if 'shard id too high' in e.response.text.lower():
failed = True

assert failed, "Asking for too high shard id didn't fail"
Copy link
Member

Choose a reason for hiding this comment

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

Nice, appreciate the test case.

@StephanDollberg StephanDollberg merged commit eba992f into dev Nov 5, 2024
17 checks passed
@StephanDollberg StephanDollberg deleted the stephan/mem-sampler-off-by-1-admin branch November 5, 2024 08:57
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