-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Changes from 8 commits
3f0be8b
4b6a824
242024b
c85f02f
b6550bf
8818f61
fab987e
ab1a2b3
669b4e2
d628af8
818549e
f76e166
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,5 +34,5 @@ public String toString() { | |
public String toString() { | ||
return "Fetching"; | ||
} | ||
}; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,6 @@ | |
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import java.util.Collections; | ||
import java.util.Map; | ||
import java.util.concurrent.TimeUnit; | ||
import java.util.function.BiConsumer; | ||
|
@@ -57,7 +56,7 @@ public DelayedDeleteRecords(long delayMs, | |
Consumer<Map<TopicPartition, DeleteRecordsPartitionResult>> responseCallback) { | ||
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 commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
this.responseCallback = responseCallback; | ||
// first update the acks pending variable according to the error code | ||
deleteRecordsStatus.forEach((topicPartition, status) -> { | ||
|
Uh oh!
There was an error while loading. Please reload this page.