[
https://issues.apache.org/jira/browse/IGNITE-19688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vladislav Pyatkov updated IGNITE-19688:
---------------------------------------
Description:
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#getLeader_).
*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_.
was:
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}
> NPE in ItNodeTest#testChangePeersStepsDownInJointConsensus
> ----------------------------------------------------------
>
> Key: IGNITE-19688
> URL: https://issues.apache.org/jira/browse/IGNITE-19688
> Project: Ignite
> Issue Type: Bug
> Reporter: Yury Gerzhedovich
> Priority: Blocker
> Labels: ignite-3
>
> 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#getLeader_).
> *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)