-
Notifications
You must be signed in to change notification settings - Fork 14.6k
MINOR: Cleanup Server Module #20180
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: Cleanup Server Module #20180
Conversation
Hey @chia7712 |
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, LGTM
server/src/main/java/org/apache/kafka/server/share/session/ShareSessionKey.java
Outdated
Show resolved
Hide resolved
Gentle reminder @chia7712 |
Gentle reminder @chia7712 |
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.
@sjhajharia thanks for this patch. a couple of comments are left.
server/src/main/java/org/apache/kafka/server/config/ClientQuotaManagerConfig.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/kafka/server/quota/ClientSensors.java
Outdated
Show resolved
Hide resolved
super(delayMs); | ||
this.onAcksPending = onAcksPending; | ||
this.deleteRecordsStatus = Collections.unmodifiableMap(deleteRecordsStatus); | ||
this.deleteRecordsStatus = Map.copyOf(deleteRecordsStatus); |
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.
Is the deep copy necessary for now? or we could revisit this code after rewriting the ReplicaManager
by java
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.
I agree with the later. Lets keep it as Map.copyOf and revisit the same once the Java conversion is complete.
server/src/main/java/org/apache/kafka/network/SocketServerConfigs.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/apache/kafka/network/SocketServerConfigsTest.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.
@sjhajharia thanks for updates.
Gentle ping @chia7712 |
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.
@sjhajharia thanks for you updates!
server/src/main/java/org/apache/kafka/server/share/session/ShareSessionKey.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/kafka/server/share/session/ShareSessionKey.java
Outdated
Show resolved
Hide resolved
Thanks @chia7712 for the review. |
Hey @chia7712 |
As the PR title suggests, this PR is an attempt to perform some cleanups
in the server module. The changes are mostly around the use of Record
type for some classes, changes to use enhanced switch, etc.
Reviewers: Ken Huang [email protected], Chia-Ping Tsai
[email protected]