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

Mirza Aliev commented on IGNITE-19688:
--------------------------------------

[~vpyatkov] Could you please take a look? 

> NPE in ItNodeTest#testChangePeersStepsDownInJointConsensus
> ----------------------------------------------------------
>
>                 Key: IGNITE-19688
>                 URL: https://issues.apache.org/jira/browse/IGNITE-19688
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Yury Gerzhedovich
>            Assignee: Mirza Aliev
>            Priority: Blocker
>              Labels: ignite-3
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> org.apache.ignite.raft.jraft.core.ItNodeTest#testChangePeersStepsDownInJointConsensus
> {noformat}
> java.lang.NullPointerException  
>  at 
> org.apache.ignite.raft.jraft.core.ItNodeTest.testChangePeersStepsDownInJointConsensus(ItNodeTest.java:3385)
>   
>  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)  
>  at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   
>  at java.base/java.lang.reflect.Method.invoke(Method.java:566) 
> {noformat}
> *Motivation*
> The root cause of the issue is the method of getting leader 
> (_TestCluster#getLeader_) might return _null_ even if the test waits a leader 
> before (_TestCluster#waitLeader_).
> *Implementation Notes*
> Create a new method that returns a leader just after it has waited it 
> (_TestCluster#waitAndGetLeader_).
> *Definition of Done*
> Verify all places where method of waiting leader is used and replace it to 
> new one in that case where getting leader is not expected to receive _null_.



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

Reply via email to