[
https://issues.apache.org/jira/browse/IGNITE-14828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17371340#comment-17371340
]
Alexey Gidaspov commented on IGNITE-14828:
------------------------------------------
Hello [~maliev],
I see 'Release Notes Required' flag is set and no release note attached. Please
add release note or remove the flag. Thank you.
> No fallback to full rebalance after exception on historical
> -----------------------------------------------------------
>
> Key: IGNITE-14828
> URL: https://issues.apache.org/jira/browse/IGNITE-14828
> Project: Ignite
> Issue Type: Bug
> Reporter: Mirza Aliev
> Assignee: Mirza Aliev
> Priority: Major
> Fix For: 2.11
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> We have noticed that in some cases when we handle demand message in
> {{GridDhtPartitionSupplier.java}} it is possible for some reasons that
> {code:java}
> iter = grp.offheap().rebalanceIterator(demandMsg.partitions(),
> demandMsg.topologyVersion());
> {code}
> throw an exception. In that case, rebalance should switch to full, but the
> code has a bug and {{remainingParts}} has been filed after rebalance iterator
> has been created
> {code:java}
> for (int i = 0; i < histMap.size(); i++) {
> int p = histMap.partitionAt(i);
> remainingParts.add(p);
> }
> {code}
> That means that we lost partitions that meant to be rebalanced by historical
> rebalance.
> The solution is to create an iterator after {{remainingParts}} filling.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)