Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Later
-
None
-
None
-
None
Description
In various methods from KafkaAdminClient, there is extra Map created when constructing XXResult instance.
e.g.
return new DescribeReplicaLogDirResult(new HashMap<TopicPartitionReplica, KafkaFuture<ReplicaLogDirInfo>>(futures));
Prior to returning, futures Map is already filled.
Calling get() and values() does not involve the internals of HashMap when we consider thread-safety.
The extra Map doesn't need to be created.
Attachments
Attachments
Issue Links
- links to