hongzhi-gao commented on code in PR #16811:
URL: https://github.com/apache/iotdb/pull/16811#discussion_r2588512991


##########
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/IoTConsensus.java:
##########
@@ -271,8 +330,19 @@ public void createLocalPeer(ConsensusGroupId groupId, 
List<Peer> peers)
                 k -> {
                   exist.set(false);
 
-                  String path = buildPeerDir(storageDir, groupId);
+                  String path = null;
+                  try {
+                    path = 
buildPeerDir(folderManager.getFolderByHashId(groupId.getId()), groupId);
+                  } catch (DiskSpaceInsufficientException e) {
+                    logger.warn(
+                        "Failed to create consensus directory for group {} due 
to disk space insufficiency: {}",
+                        groupId,
+                        e.getMessage());
+                    return null;
+                  }
                   File file = new File(path);
+                  // debug print the path of consensus dir
+                  System.out.println(file.getAbsolutePath());

Review Comment:
   removed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to