-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
KAFKA-18932: Removed usage of partition max bytes from share fetch requests #19148
base: trunk
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. One high level query before I proceed for review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Some comments.
clients/src/main/java/org/apache/kafka/common/requests/ShareFetchRequest.java
Outdated
Show resolved
Hide resolved
clients/src/main/java/org/apache/kafka/common/requests/ShareFetchRequest.java
Outdated
Show resolved
Hide resolved
core/src/main/java/kafka/server/share/SharePartitionManager.java
Outdated
Show resolved
Hide resolved
core/src/test/java/kafka/server/share/DelayedShareFetchTest.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/kafka/server/share/fetch/PartitionRotateStrategy.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/kafka/server/share/fetch/PartitionRotateStrategy.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/kafka/server/share/session/ShareSession.java
Show resolved
Hide resolved
server/src/main/java/org/apache/kafka/server/share/session/ShareSession.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/apache/kafka/server/share/fetch/ShareFetchTestUtils.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. It's good to see some of the cruft being removed.
clients/src/main/java/org/apache/kafka/common/requests/ShareFetchRequest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/apache/kafka/server/share/fetch/ShareFetchTestUtils.java
Outdated
Show resolved
Hide resolved
Please update |
done this in my latest commit, it has triggered a whole bunch of changes :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left some comments.
core/src/test/java/kafka/server/share/DelayedShareFetchTest.java
Outdated
Show resolved
Hide resolved
core/src/test/java/kafka/server/share/SharePartitionManagerTest.java
Outdated
Show resolved
Hide resolved
core/src/test/java/kafka/server/share/SharePartitionManagerTest.java
Outdated
Show resolved
Hide resolved
core/src/test/java/kafka/server/share/SharePartitionManagerTest.java
Outdated
Show resolved
Hide resolved
core/src/test/java/kafka/server/share/SharePartitionManagerTest.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/kafka/server/share/fetch/PartitionRotateStrategy.java
Show resolved
Hide resolved
server/src/main/java/org/apache/kafka/server/share/fetch/PartitionRotateStrategy.java
Show resolved
Hide resolved
server/src/test/java/org/apache/kafka/server/share/fetch/PartitionRotateStrategyTest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/apache/kafka/server/share/fetch/PartitionRotateStrategyTest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/apache/kafka/server/share/fetch/PartitionRotateStrategyTest.java
Outdated
Show resolved
Hide resolved
6bd2233
to
aed4e9f
Compare
@apoorvmittal10 , I have addressed your comments. Please review when you can. Also, I had to do a force push to fix the branch history because it got corrupted by a merge commit performed by IntelliJ. That's why you see so many labels in the PR. If possible, can you remove the extra labels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, some minor comments and a question.
server/src/main/java/org/apache/kafka/server/share/fetch/PartitionRotateStrategy.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/kafka/server/share/fetch/PartitionRotateStrategy.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/apache/kafka/server/share/fetch/PartitionRotateStrategyTest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/apache/kafka/server/share/fetch/PartitionRotateStrategyTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, LGTM.
What
This PR aims to remove the usage of partition max bytes from share fetch requests. Partition Max Bytes is being defined by
PartitionMaxBytesStrategy
which was added to the broker as part of PR #17870Testing
The code has been tested with the help of already present unit and integration tests.