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

MINOR: Move Throttler to storage module #16023

Merged
merged 2 commits into from
May 22, 2024
Merged

Conversation

mimaison
Copy link
Member

Throttler is one of the dependencies required in order to move LogCleaner out of core.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@mimaison nice patch! One small comment is left. Also, could you please cleanup the spotbugs file?

<Package name="kafka.utils"/>

time = time)
private[log] val throttler = new Throttler(config.maxIoBytesPerSecond,
300,
true,
Copy link
Member

Choose a reason for hiding this comment

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

It seems throttleDown is always true in production. Maybe we can remove it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Right this can be removed. Done.

I also removed the spotbugs exclusion.

Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

LGTM

@mimaison
Copy link
Member Author

None of the test failures seem related, merging to trunk.

@mimaison mimaison merged commit e4e1116 into apache:trunk May 22, 2024
1 check failed
@mimaison mimaison deleted the move-throttler branch May 22, 2024 16:47
rreddy-22 pushed a commit to rreddy-22/kafka-rreddy that referenced this pull request May 24, 2024
chiacyu pushed a commit to chiacyu/kafka that referenced this pull request Jun 1, 2024
TaiJuWu pushed a commit to TaiJuWu/kafka that referenced this pull request Jun 8, 2024
gongxuanzhang pushed a commit to gongxuanzhang/kafka that referenced this pull request Jun 12, 2024
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.

2 participants