File tree Expand file tree Collapse file tree
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/disk Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929import org .apache .iotdb .commons .disk .strategy .SequenceStrategy ;
3030import org .apache .iotdb .commons .exception .DiskSpaceInsufficientException ;
3131import org .apache .iotdb .commons .i18n .UtilMessages ;
32+ import org .apache .iotdb .commons .utils .JVMCommonUtils ;
3233
3334import org .slf4j .Logger ;
3435import org .slf4j .LoggerFactory ;
@@ -158,6 +159,10 @@ public String getFirstFolderOfSameDisk(String pathStr) {
158159 try {
159160 FileStore fileStore = Files .getFileStore (path );
160161 for (String folder : folders ) {
162+ if (foldersStates .getOrDefault (folder , FolderState .ABNORMAL ) != FolderState .HEALTHY
163+ || !JVMCommonUtils .hasSpace (folder )) {
164+ continue ;
165+ }
161166 Path folderPath = Paths .get (folder );
162167 FileStore folderFileStore = Files .getFileStore (folderPath );
163168 if (folderFileStore .equals (fileStore )) {
You can’t perform that action at this time.
0 commit comments