guihecheng commented on a change in pull request #479:
URL: https://github.com/apache/ratis/pull/479#discussion_r643621498



##########
File path: 
ratis-server/src/main/java/org/apache/ratis/server/storage/RaftStorageDirectoryImpl.java
##########
@@ -150,6 +152,13 @@ StorageState analyzeStorage(boolean toLock) throws 
IOException {
       this.lock(); // lock storage if it exists
     }
 
+    // check enough space
+    if (!hasEnoughSpace()) {
+      LOG.warn("There are not enough space left for directory " + rootPath
+          + "required: " + spaceReserved + " left: " + root.getFreeSpace());

Review comment:
       OK.




-- 
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.

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


Reply via email to