You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "changxue (Jira)" <ji...@apache.org> on 2023/01/07 06:52:00 UTC

[jira] [Created] (IOTDB-5383) [confignode]start-confignode fail with NPE

changxue created IOTDB-5383:
-------------------------------

             Summary: [confignode]start-confignode fail with NPE
                 Key: IOTDB-5383
                 URL: https://issues.apache.org/jira/browse/IOTDB-5383
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Core/Server
    Affects Versions: 1.0.1
            Reporter: changxue
            Assignee: Xinyu Tan


[confignode]start-confignode fail with NPE

reproduction:
1. config_node_ratis_snapshot_trigger_threshold=30 append in iotdb-common.properties
2. start 3C3D cluster

expect: start successfully

actual result:
2C3D start successfully but it failed with NPE when start the third confignode 
{code}
IoTDB> show cluster
+------+----------+-------+---------------+------------+
|NodeID|  NodeType| Status|InternalAddress|InternalPort|
+------+----------+-------+---------------+------------+
|     0|ConfigNode|Running|   172.20.70.44|       10710|
|     2|ConfigNode|Running|   172.20.70.45|       10710|
|     1|  DataNode|Running|   172.20.70.44|       10730|
|     3|  DataNode|Running|   172.20.70.45|       10730|
|     5|  DataNode|Unknown|   172.20.70.46|       10730|
+------+----------+-------+---------------+------------+
{code}

{code}
2023-01-07 14:42:11,745 [grpc-default-executor-0] INFO  o.a.r.g.s.GrpcServerProtocolService$ServerRequestStreamObserver:143 - 8: Completed INSTALL_SNAPSHOT, lastRequest: 0->8#0-t1,chunk:ba310edb-b921-452d-8023-4ef2ad4f51f9,8 
2023-01-07 14:42:11,746 [8@group-000000000000-StateMachineUpdater] ERROR o.a.r.s.i.StateMachineUpdater:194 - 8@group-000000000000-StateMachineUpdater caught a Throwable. 
java.lang.NullPointerException: snapshot == null
	at java.util.Objects.requireNonNull(Objects.java:228)
	at org.apache.ratis.server.impl.StateMachineUpdater.reload(StateMachineUpdater.java:219)
	at org.apache.ratis.server.impl.StateMachineUpdater.run(StateMachineUpdater.java:179)
	at java.lang.Thread.run(Thread.java:748)
{code}



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