]
Galder Zamarreño updated ISPN-6511:
-----------------------------------
Git Pull Request:
Allocate less memory during RPC response handling
-------------------------------------------------
Key: ISPN-6511
URL:
https://issues.jboss.org/browse/ISPN-6511
Project: Infinispan
Issue Type: Task
Components: Core
Affects Versions: 8.2.1.Final, 9.0.0.Alpha1
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 9.0.0.Alpha2, 9.0.0.Final
For broadcasts/anycasts, the {{JGroupsTransport.invokeRemotelyAsync()}} responses
{{HashMap}} is created with the wrong initial capacity ({{recipients.size()}} instead of
({{recipients.size()/DEFAULT_LOAD_FACTOR}}, and it needs a resize to fit all the
responses.
Clustered get commands shouldn't have the problem because usually there is only one
valid response. However, we actually a {{CacheNotFoundResponse}} for all the owners that
we didn't request the entry from, triggering the resize.