Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2161#discussion_r241982006
  
    --- Diff: 
core/src/main/java/org/apache/carbondata/core/datastore/filesystem/AlluxioCarbonFile.java
 ---
    @@ -94,14 +93,9 @@ public CarbonFile getParentFile() {
       public boolean renameForce(String changeToName) {
         FileSystem fs;
         try {
    -      fs = 
fileStatus.getPath().getFileSystem(FileFactory.getConfiguration());
    -      if (fs instanceof DistributedFileSystem) {
    -        ((DistributedFileSystem) fs).rename(fileStatus.getPath(), new 
Path(changeToName),
    -            org.apache.hadoop.fs.Options.Rename.OVERWRITE);
    -        return true;
    -      } else {
    -        return false;
    -      }
    +      fs = fileStatus.getPath().getFileSystem(hadoopConf);
    +      fs.delete(new Path(changeToName), true);
    +      return fs.rename(fileStatus.getPath(), new Path(changeToName));
    --- End diff --
    
    You mean force rename is handled in Alluxio 1.7.1 ?  which Alluxio version 
are you using currently?


---

Reply via email to