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

    https://github.com/apache/incubator-carbondata/pull/156#discussion_r79222066
  
    --- Diff: 
processing/src/main/java/org/apache/carbondata/lcm/status/SegmentStatusManager.java
 ---
    @@ -306,13 +330,18 @@ private Integer compareDateValues(Long loadValue, 
Long userValue) {
        * @return
        */
       public List<String> updateDeletionStatus(String loadDate, String 
tableFolderPath,
    -      Long loadStartTime) {
    -    ICarbonLock carbonLock = CarbonLockFactory
    -        
.getCarbonLockObj(absoluteTableIdentifier.getCarbonTableIdentifier(),
    -            LockUsage.METADATA_LOCK);
    +      Long loadStartTime) throws Exception {
    +    CarbonTableIdentifier carbonTableIdentifier =
    +        absoluteTableIdentifier.getCarbonTableIdentifier();
    +    ICarbonLock carbonMetadataLock =
    +        CarbonLockFactory.getCarbonLockObj(carbonTableIdentifier, 
LockUsage.METADATA_LOCK);
    +    ICarbonLock carbonTableStatusLock =
    +        CarbonLockFactory.getCarbonLockObj(carbonTableIdentifier, 
LockUsage.TABLE_STATUS_LOCK);
    +    String tableDetails =
    +        carbonTableIdentifier.getDatabaseName() + "." + 
carbonTableIdentifier.getTableName();
         List<String> invalidLoadTimestamps = new ArrayList<String>(0);
         try {
    -      if (carbonLock.lockWithRetries()) {
    +      if (carbonMetadataLock.lockWithRetries()) {
    --- End diff --
    
    ok


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