SilverNarcissus commented on a change in pull request #388: [IOTDB-200] Support 
creating TsFileWriter with config of storage file system
URL: https://github.com/apache/incubator-iotdb/pull/388#discussion_r323237793
 
 

 ##########
 File path: 
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
 ##########
 @@ -537,7 +538,7 @@ public void syncDeleteDataFiles() {
       List<String> folder = 
DirectoryManager.getInstance().getAllSequenceFileFolders();
       
folder.addAll(DirectoryManager.getInstance().getAllUnSequenceFileFolders());
       for (String tsfilePath : folder) {
-        File storageGroupFolder = new File(tsfilePath, storageGroupName);
+        File storageGroupFolder = TSFileFactory.INSTANCE.getFile(tsfilePath, 
storageGroupName);
         if (storageGroupFolder.exists()) {
           try {
             FileUtils.deleteDirectory(storageGroupFolder);
 
 Review comment:
   In windows test, file utils can not delete the directory. I think the bug 
may be laid here.

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


With regards,
Apache Git Services

Reply via email to