Skip to content

Conversation

sjhajharia
Copy link
Contributor

@sjhajharia sjhajharia commented Jul 16, 2025

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]

@github-actions github-actions bot added triage PRs from the community core Kafka Broker labels Jul 16, 2025
@sjhajharia
Copy link
Contributor Author

Hey @chia7712
A minor PR for review.

Copy link
Collaborator

@m1a2st m1a2st left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@github-actions github-actions bot removed the triage PRs from the community label Jul 23, 2025
@sjhajharia sjhajharia requested a review from chia7712 July 23, 2025 10:31
@sjhajharia
Copy link
Contributor Author

Gentle reminder @chia7712
TIA!

@sjhajharia
Copy link
Contributor Author

Gentle reminder @chia7712

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.

@sjhajharia thanks for this patch. a couple of comments are left.

super(delayMs);
this.onAcksPending = onAcksPending;
this.deleteRecordsStatus = Collections.unmodifiableMap(deleteRecordsStatus);
this.deleteRecordsStatus = Map.copyOf(deleteRecordsStatus);
Copy link
Member

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

Copy link
Contributor Author

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.

@sjhajharia sjhajharia requested a review from chia7712 August 14, 2025 05:10
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.

@sjhajharia thanks for updates.

@sjhajharia sjhajharia requested a review from chia7712 August 18, 2025 11:48
@sjhajharia
Copy link
Contributor Author

Gentle ping @chia7712

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.

@sjhajharia thanks for you updates!

@sjhajharia
Copy link
Contributor Author

Thanks @chia7712 for the review.
I have addressed the comments and added two unit test files -> ClientSensorsTest.java and ShareSessionKeyTest.java for the same.
Pls review when possible. TIA!

@sjhajharia sjhajharia requested a review from chia7712 September 1, 2025 05:16
@sjhajharia
Copy link
Contributor Author

Hey @chia7712
gentle reminder

@chia7712 chia7712 merged commit 3c7f99a into apache:trunk Sep 7, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants