You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "yanze chen (Jira)" <ji...@apache.org> on 2022/12/25 06:37:00 UTC

[jira] [Created] (IOTDB-5277) [schema] SchemaRegion throws NPE when loading snapshot

yanze chen created IOTDB-5277:
---------------------------------

             Summary: [schema] SchemaRegion throws NPE when loading snapshot 
                 Key: IOTDB-5277
                 URL: https://issues.apache.org/jira/browse/IOTDB-5277
             Project: Apache IoTDB
          Issue Type: Bug
            Reporter: yanze chen
            Assignee: yanze chen
         Attachments: 9b23c97eca9eeb1adc11571607baa3f6.zip

reproduce: Launch 1C1D using the attached data directory

 
{code:java}
1972 [main] ERROR o.a.iotdb.commons.ServerCommandLine - Failed to execute system command 
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "org.apache.iotdb.db.metadata.mnode.IMNode.getAsStorageGroupMNode()" because the return value of "org.apache.iotdb.db.metadata.mtree.store.MemMTreeStore.getRoot()" is null
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347)
    at java.base/java.util.concurrent.CompletableFuture$BiRelay.tryFire(CompletableFuture.java:1498)
    at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
    at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2147)
    at org.apache.ratis.util.ConcurrentUtils.accept(ConcurrentUtils.java:174)
    at org.apache.ratis.util.ConcurrentUtils.lambda$null$3(ConcurrentUtils.java:165)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.iotdb.db.metadata.mnode.IMNode.getAsStorageGroupMNode()" because the return value of "org.apache.iotdb.db.metadata.mtree.store.MemMTreeStore.getRoot()" is null
    at org.apache.iotdb.db.metadata.mtree.MTreeBelowSGMemoryImpl.<init>(MTreeBelowSGMemoryImpl.java:133)
    at org.apache.iotdb.db.metadata.mtree.MTreeBelowSGMemoryImpl.loadFromSnapshot(MTreeBelowSGMemoryImpl.java:173)
    at org.apache.iotdb.db.metadata.schemaregion.SchemaRegionMemoryImpl.loadSnapshot(SchemaRegionMemoryImpl.java:457)
    at org.apache.iotdb.db.consensus.statemachine.SchemaRegionStateMachine.loadSnapshot(SchemaRegionStateMachine.java:67)
    at org.apache.iotdb.consensus.ratis.ApplicationStateMachineProxy.loadSnapshot(ApplicationStateMachineProxy.java:257)
    at org.a {code}



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