You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexander Lapin (Jira)" <ji...@apache.org> on 2022/12/09 14:29:00 UTC

[jira] [Commented] (IGNITE-17976) Throw correct exception on KeyValueView#get in case of lost majority

    [ https://issues.apache.org/jira/browse/IGNITE-17976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17645321#comment-17645321 ] 

Alexander Lapin commented on IGNITE-17976:
------------------------------------------

[~maliev] I'll check the TC and notify you on PA.

> Throw correct exception on KeyValueView#get in case of lost majority
> --------------------------------------------------------------------
>
>                 Key: IGNITE-17976
>                 URL: https://issues.apache.org/jira/browse/IGNITE-17976
>             Project: Ignite
>          Issue Type: Task
>            Reporter: Mirza Aliev
>            Assignee: Alexander Lapin
>            Priority: Major
>              Labels: ignite-3
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> *Scenario*:
> Start two nodes, populate data, stop node, try to {{table.keyValueView().get}} value. 
> *Expected behaviour*: 
> Exception is thrown. We should throw TransactionException with error code, that we don't have an actor, who can handle that request. Also we need to add a root cause to the exception whether it was lost majority, or the reason is the replica unavailability etc. 
> *Actual behaviour*: 
> We can caught {{ReplicationTimeoutException}}, {{TransactionException}}, {{IgniteException}}. Sometimes we fail with {{NullPointerException}}, the reason is because we can stop leader of some partition, and for two nodes it is impossible to elect new leader, so we get null in {{InternalTableImpl#enlist}} when we try to get {{svc.refreshAndGetLeaderWithTerm();}}
> The problem can be reproduced in the test {{ItIgniteNodeRestartTest#testOneNodeRestartWithGap}}, which was muted using this ticket.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)