You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by akashrn5 <gi...@git.apache.org> on 2017/12/04 12:34:38 UTC

[GitHub] carbondata pull request #1608: [CARBONDATA-1761]do not change status of segm...

GitHub user akashrn5 opened a pull request:

    https://github.com/apache/carbondata/pull/1608

    [CARBONDATA-1761]do not change status of segment to marked for delete if it is in progress

    do not change status of segment to marked for delete if it is in progress
    
    Be sure to do all of the following checklist to help us incorporate 
    your contribution quickly and easily:
    
     - [*] Any interfaces changed?
     NA
     - [*] Any backward compatibility impacted?
     NA
     - [*] Document update required?
    NA
     - [*] Testing done
            tested in local
           
     - [*] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. 
    NA


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/akashrn5/incubator-carbondata delete

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/1608.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1608
    
----
commit de63d8c843a7860f49d3e5b5627aceee1332f37d
Author: akashrn5 <ak...@gmail.com>
Date:   2017-12-04T12:31:18Z

    do not change status of segment to marked for delete if it is in progress

----


---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/1681/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by akashrn5 <gi...@git.apache.org>.
Github user akashrn5 commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    retest this please


---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by akashrn5 <gi...@git.apache.org>.
Github user akashrn5 commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    retest this please


---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2090/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/1774/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    retest this please


---

[GitHub] carbondata pull request #1608: [CARBONDATA-1761]do not change status of segm...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1608#discussion_r154835950
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/statusmanager/SegmentStatusManager.java ---
    @@ -493,6 +493,19 @@ public static void writeLoadDetailsIntoFile(String dataLoadLocation,
                 invalidLoadIds.add(loadId);
                 return invalidLoadIds;
               }
    +          // if the segment status is in progress then no need to delete that.
    +          if (SegmentStatus.INSERT_IN_PROGRESS == loadMetadata.getSegmentStatus()) {
    +            LOG.error("Cannot delete the Segment which is In Progress. Segment is " + loadId);
    --- End diff --
    
    Please rephrase the sentence 
    `"Cannot delete the segemnt "+ loadId +" which is load in progress" `


---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/1739/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Build Success with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/463/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Please combine this PR with #1610, it is better to keep all rejecting logic in one PR


---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Build Failed with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/435/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by akashrn5 <gi...@git.apache.org>.
Github user akashrn5 commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    @ravipesala handled comments please review


---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/1731/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Build Success with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/409/



---

[GitHub] carbondata pull request #1608: [CARBONDATA-1761]do not change status of segm...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/carbondata/pull/1608


---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/1706/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Build Success with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/458/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    LGTM


---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2107/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/1725/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Build Success with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/436/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2067/



---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    retest sdv please


---

[GitHub] carbondata pull request #1608: [CARBONDATA-1761]do not change status of segm...

Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1608#discussion_r154835999
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/statusmanager/SegmentStatusManager.java ---
    @@ -493,6 +493,19 @@ public static void writeLoadDetailsIntoFile(String dataLoadLocation,
                 invalidLoadIds.add(loadId);
                 return invalidLoadIds;
               }
    +          // if the segment status is in progress then no need to delete that.
    +          if (SegmentStatus.INSERT_IN_PROGRESS == loadMetadata.getSegmentStatus()) {
    +            LOG.error("Cannot delete the Segment which is In Progress. Segment is " + loadId);
    +            invalidLoadIds.add(loadId);
    +            return invalidLoadIds;
    +          }
    +          // if the segment status is overwrite in progress, then no need to delete that.
    +          if (SegmentStatus.INSERT_OVERWRITE_IN_PROGRESS == loadMetadata.getSegmentStatus()) {
    +            LOG.error("Cannot delete the Segment which is Overwrite In Progress. " +
    --- End diff --
    
    Please rephrase the sentence 
    `"Cannot delete the segemnt "+ loadId +" which is load overwrite in progress" `


---

[GitHub] carbondata issue #1608: [CARBONDATA-1761]do not change status of segment dur...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1608
  
    Build Success with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/513/



---