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

    https://github.com/apache/incubator-carbondata/pull/156#discussion_r79291255
  
    --- Diff: 
integration/spark/src/main/scala/org/apache/carbondata/spark/rdd/CarbonDataRDDFactory.scala
 ---
    @@ -1111,25 +1131,32 @@ object CarbonDataRDDFactory extends Logging {
         val table = 
org.apache.carbondata.core.carbon.metadata.CarbonMetadata.getInstance
           .getCarbonTable(carbonLoadModel.getDatabaseName + "_" + 
carbonLoadModel.getTableName)
         val metaDataPath: String = table.getMetaDataFilepath
    -    val carbonLock = CarbonLockFactory
    +    val carbonCleanFilesLock = CarbonLockFactory
           
.getCarbonLockObj(table.getAbsoluteTableIdentifier.getCarbonTableIdentifier,
    -        LockUsage.METADATA_LOCK
    +        LockUsage.CLEAN_FILES_LOCK
           )
         try {
    -      if (carbonLock.lockWithRetries()) {
    +      if (carbonCleanFilesLock.lockWithRetries()) {
    +        logger.info("Clean files lock has been successfully acquired.")
             deleteLoadsAndUpdateMetadata(carbonLoadModel,
               table,
               partitioner,
               hdfsStoreLocation,
               isForceDeletion = true)
           }
    +      else {
    +        val errorMsg = "Clean files request is failed for " + 
carbonLoadModel.getDatabaseName +
    --- End diff --
    
     "Clean file request is running in the background, please try after some 
time". u[date the comment since already we know the operation


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to