761417898 opened a new pull request, #16122:
URL: https://github.com/apache/iotdb/pull/16122

   The issue occurs because mkdirs() fails silently - it returns false rather 
than throwing an IOException when unable to create directories.
   ```
   try {
         return folderManager.getNextWithRetry(
             baseDir -> {
               String tsFileDir =
                   baseDir
                       + File.separator
                       + logicalStorageGroup
                       + File.separator
                       + virtualStorageGroup
                       + File.separator
                       + timePartitionId;
               fsFactory.getFile(tsFileDir).mkdirs();
               return tsFileDir
                   + File.separator
                   + generateNewTsFileName(
                       time,
                       version,
                       innerSpaceCompactionCount,
                       crossSpaceCompactionCount,
                       customSuffix);
             });
       } catch (DiskSpaceInsufficientException e) {
         LOGGER.error("All disks are full, cannot create tsfile directory", e);
         throw new IOException("Disk space insufficient", e);
       } catch (Exception e) {
         LOGGER.warn("Failed to create tsfile directory after retries", e);
         throw new IOException("Failed to create directory after retries", e);
       }
   ```
   


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