[
https://issues.apache.org/jira/browse/IGNITE-22722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872291#comment-17872291
]
Andrey Mashenkov commented on IGNITE-22722:
-------------------------------------------
I've preserved original behavior. The new method may return a list with
`{{{}null{}}}` element which assignment wasn't found for.
> Add the ability to get assignments for a list of replication groups at once.
> ----------------------------------------------------------------------------
>
> Key: IGNITE-22722
> URL: https://issues.apache.org/jira/browse/IGNITE-22722
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Reporter: Pavel Pereslegin
> Assignee: Andrey Mashenkov
> Priority: Major
> Labels: ignite-3
> Time Spent: 10m
> Remaining Estimate: 0h
>
> At the moment, it is not possible to get assignments for several replication
> groups at once.
> {{AssignmentsPlacementDriver}} has the following method only to get
> assignments.
> {code:java}
> CompletableFuture<TokenizedAssignments> getAssignments(ReplicationGroupId
> replicationGroupId, HybridTimestamp clusterTimeToAwait);
> {code}
> But sometimes you need to get assignments for a list of several replication
> groups, so it would be nice to have a separate method for this, something
> like the following:
> {code:java}
> CompletableFuture<List<TokenizedAssignments>>
> getAssignments(List<ReplicationGroupId> replicationGroupId, HybridTimestamp
> clusterTimeToAwait);
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)