[ https://issues.apache.org/jira/browse/IGNITE-26008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksandr Polovtsev updated IGNITE-26008: ----------------------------------------- Description: When collecting performance statistics on a read-heavy workload the following issue was discovered: a huge number of CompletableFutures are produced by the {{PartitionReplicaListener#retrieveExactEntriesUntilCursorEmpty}} method. This issue can be fixed by avoiding future allocations in cases Write Intent Resolution is not needed. Here's the number of allocations before the proposed fix: !Screenshot 2025-07-23 at 18.48.07.png|width=1000,height=150! And here's the number of allocations after the fix (the number of the futures is nearly negligible): !Screenshot 2025-07-23 at 18.49.11.png|width=1000,height=150! was: When collecting performance statistics on a read-heavy workload the following issue was discovered: a huge number of CompletableFutures are produced by the {{PartitionReplicaListener#retrieveExactEntriesUntilCursorEmpty}} method. This issue can be fixed by avoiding future allocations in cases Write Intent Resolution is not needed. Here's the number of allocations before the proposed fix: !Screenshot 2025-07-23 at 18.48.07.png|width=700,height=150! And here's the number of allocations after the fix (the number of the futures is nearly negligible): !Screenshot 2025-07-23 at 18.49.11.png|width=700,height=150! > Reduce the number of CompletableFutures produced by PartitionReplicaListener > ---------------------------------------------------------------------------- > > Key: IGNITE-26008 > URL: https://issues.apache.org/jira/browse/IGNITE-26008 > Project: Ignite > Issue Type: Improvement > Reporter: Aleksandr Polovtsev > Assignee: Aleksandr Polovtsev > Priority: Major > Labels: ignite-3 > Attachments: Screenshot 2025-07-23 at 18.48.07.png, Screenshot > 2025-07-23 at 18.49.11.png > > Time Spent: 10m > Remaining Estimate: 0h > > When collecting performance statistics on a read-heavy workload the following > issue was discovered: a huge number of CompletableFutures are produced by the > {{PartitionReplicaListener#retrieveExactEntriesUntilCursorEmpty}} method. > This issue can be fixed by avoiding future allocations in cases Write Intent > Resolution is not needed. > Here's the number of allocations before the proposed fix: > !Screenshot 2025-07-23 at 18.48.07.png|width=1000,height=150! > And here's the number of allocations after the fix (the number of the futures > is nearly negligible): > !Screenshot 2025-07-23 at 18.49.11.png|width=1000,height=150! -- This message was sent by Atlassian Jira (v8.20.10#820010)