guihecheng commented on a change in pull request #479:
URL: https://github.com/apache/ratis/pull/479#discussion_r643621279
##########
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());
+ return StorageState.NON_EXISTENT;
Review comment:
Oh, thanks for pointing this out, will fix it.
--
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]