[GitHub] carbondata pull request #2362: [CARBONDATA-2578] RowBatch is closed when rea...

classic Classic list List threaded Threaded
35 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2362: [CARBONDATA-2578] RowBatch is closed when rea...

qiuchenjian-2
GitHub user rahulforallp opened a pull request:

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

    [CARBONDATA-2578] RowBatch is closed when reader is iterated

    Be sure to do all of the following checklist to help us incorporate
    your contribution quickly and easily:
   
     - [ ] Any interfaces changed?
     
     - [ ] Any backward compatibility impacted?
     
     - [ ] Document update required?
   
     - [ ] Testing done
            Please provide details on
            - Whether new unit test cases have been added or why no new tests are required?
            - How it is tested? Please attach test report.
            - Is it a performance related change? Please attach the performance test report.
            - Any additional information to help reviewers in testing this change.
           
     - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
   


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

    $ git pull https://github.com/rahulforallp/incubator-carbondata CARBONDATA-2578

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

    https://github.com/apache/carbondata/pull/2362.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 #2362
   
----
commit bbb9481cfe6e6502764c4eae4b33d4ab0211b297
Author: rahul <rahul.kumar@...>
Date:   2018-06-05T07:39:36Z

    [CARBONDATA-2578] RowBatch is closed when reader is iterated

----


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] RowBatch is closed when reader is ...

qiuchenjian-2
Github user ravipesala commented on the issue:

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] RowBatch is closed when reader is ...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] RowBatch is closed when reader is ...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2362
 
    Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/5093/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] RowBatch is closed when reader is ...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] RowBatch is closed when reader is ...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2362: [CARBONDATA-2578] RowBatch is closed when rea...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user kumarvishal09 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2362#discussion_r193056787
 
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonReader.java ---
    @@ -74,6 +74,7 @@ public boolean hasNext() throws IOException, InterruptedException {
             return false;
           } else {
             index++;
    +        currentReader.close();
    --- End diff --
   
    Add comment closing current reader


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2362: [CARBONDATA-2578] RowBatch is closed when rea...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user kumarvishal09 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2362#discussion_r193056910
 
    --- Diff: hadoop/src/main/java/org/apache/carbondata/hadoop/CarbonRecordReader.java ---
    @@ -126,6 +126,7 @@ public void initialize(InputSplit inputSplit, TaskAttemptContext context)
         DataMapStoreManager.getInstance().getDefaultDataMap(queryModel.getTable()).clear();
         // close read support
         readSupport.close();
    +    carbonIterator = null;
    --- End diff --
   
    Is this required as GC will take care of this ??


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] RowBatch is closed when reader is ...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user kumarvishal09 commented on the issue:

    https://github.com/apache/carbondata/pull/2362
 
    @rahulforallp Please update PR description.


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] RowBatch is closed when reader is ...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2362
 
    Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/5095/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] fixed memory leak inside CarbonRea...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] fixed memory leak inside CarbonRea...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] fixed memory leak inside CarbonRea...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2362
 
    Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/5098/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] fixed memory leak inside CarbonRea...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2362: [CARBONDATA-2578] fixed memory leak inside Ca...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user sujith71955 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2362#discussion_r193714706
 
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonReader.java ---
    @@ -74,6 +74,8 @@ public boolean hasNext() throws IOException, InterruptedException {
             return false;
           } else {
             index++;
    +        // current reader is closed
    +        currentReader.close();
    --- End diff --
   
    Shall we close this in a finally block? else still there will be a chance of memory leak.


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2362: [CARBONDATA-2578] fixed memory leak inside Ca...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user sujith71955 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2362#discussion_r193714989
 
    --- Diff: integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/createTable/TestNonTransactionalCarbonTable.scala ---
    @@ -401,7 +402,7 @@ class TestNonTransactionalCarbonTable extends QueryTest with BeforeAndAfterAll {
         intercept[RuntimeException] {
           buildTestDataWithSortColumns(List(""))
         }
    -    
    +
    --- End diff --
   
    do we require this extra space?


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] fixed memory leak inside CarbonRea...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] fixed memory leak inside CarbonRea...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2362
 
    Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/5132/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] fixed memory leak inside CarbonRea...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:

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



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2362: [CARBONDATA-2578] fixed memory leak inside CarbonRea...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

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



---
12