[
https://issues.apache.org/jira/browse/IGNITE-22722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17871609#comment-17871609
]
Andrey Mashenkov edited comment on IGNITE-22722 at 8/9/24 10:12 AM:
--------------------------------------------------------------------
{{AssignmentsPlacementDriver.getAssignments }}javadoc says the method returns a
future, which may completes with {{{}`null{}}}` if no assignment found for
given replication group id.
I guess, the method should never ignore missed assignment, and should either
return a `null` if any assignment was missed or failed with error.
What is expected behavior for this new method?
was (Author: amashenkov):
{{AssignmentsPlacementDriver.getAssignments }}javadoc says the method returns a
future, which may completes with `{{{}null{}}}` if no assignment found for
given replication group id.
I guess, the method should never ignore missed assignment, and should either
return a `null` if any assignment was missed or failed with error.
What is expected behavior for this new method?
> 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)