You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by sh...@apache.org on 2026/04/28 04:20:31 UTC

(iotdb) 01/01: Fix DataNode startup in IDEA

This is an automated email from the ASF dual-hosted git repository.

shuwenwei pushed a commit to branch fixIdeaCannotStartDatanode
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 33e9fe82ef0b269f20a1bac2c888ad097d4c429c
Author: shuwenwei <s1...@gmail.com>
AuthorDate: Tue Apr 28 12:20:02 2026 +0800

    Fix DataNode startup in IDEA
---
 iotdb-core/datanode/pom.xml                                             | 2 +-
 .../datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/iotdb-core/datanode/pom.xml b/iotdb-core/datanode/pom.xml
index d3f5f4a669f..90abe37dada 100644
--- a/iotdb-core/datanode/pom.xml
+++ b/iotdb-core/datanode/pom.xml
@@ -266,7 +266,6 @@
         <dependency>
             <groupId>at.yawk.lz4</groupId>
             <artifactId>lz4-java</artifactId>
-            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
@@ -476,6 +475,7 @@
                     <ignoredDependencies>
                         <!-- For some reason this plugin missed it being used for a constant import -->
                         <ignoredDependency>org.apache.iotdb:isession</ignoredDependency>
+                        <ignoredDependency>at.yawk.lz4:lz4-java</ignoredDependency>
                     </ignoredDependencies>
                 </configuration>
             </plugin>
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java
index 4d7e2260d68..078c1fcb954 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java
@@ -187,7 +187,7 @@ public class DataNode extends ServerCommandLine implements DataNodeMBean {
   private volatile boolean schemaRegionConsensusStarted = false;
   private volatile boolean dataRegionConsensusStarted = false;
   private static Thread watcherThread;
-  private DataNodeContext context;
+  protected DataNodeContext context;
 
   public DataNode() {
     super("DataNode");