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

    https://github.com/apache/carbondata/pull/2472#discussion_r201610274
  
    --- Diff: 
core/src/main/java/org/apache/carbondata/core/locks/CarbonLockUtil.java ---
    @@ -121,8 +124,11 @@ public static void 
deleteExpiredSegmentLockFiles(CarbonTable carbonTable) {
         final long segmentLockFilesPreservTime =
             CarbonProperties.getInstance().getSegmentLockFilesPreserveHours();
         AbsoluteTableIdentifier absoluteTableIdentifier = 
carbonTable.getAbsoluteTableIdentifier();
    -    String lockFilesDir = CarbonTablePath
    -        .getLockFilesDirPath(absoluteTableIdentifier.getTablePath());
    +    String lockFilesDir = CarbonProperties.getInstance()
    +        .getProperty(CarbonCommonConstants.LOCK_PATH, "");
    +    if (StringUtils.isEmpty(lockFilesDir)) {
    +      lockFilesDir = 
CarbonTablePath.getLockFilesDirPath(absoluteTableIdentifier.getTablePath());
    +    }
    --- End diff --
    
    getLockPath from CarbonLockFactory is configurable lock is specified


---

Reply via email to