GitHub user BJangir opened a pull request:
https://github.com/apache/carbondata/pull/2245 [CARBONDATA-2411] infinite loop when sdk writer throws Exception Issue & root Cause :- Exception is not handled when Object is cast to String[] in writer method of CarbonWriter so no Exception thrown to caller and data-loading threads is not interrupted which is leading complete sdk application to infinite loop ( Or data loading max timeout 2 Day). Solution :- Throw Exception to caller and one Exception call writer close method . - [ ] Any interfaces changed? NO - [ ] Any backward compatibility impacted? NO - [ ] Document update required? NO - [ ] 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. Testcase Addded - [ ] 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/BJangir/incubator-carbondata CARBONDATA-2411 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/carbondata/pull/2245.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 #2245 ---- commit e9f0ccc581d41414fc3001c183b72c3b20fc4c93 Author: BJangir <babulaljangir111@...> Date: 2018-04-28T00:15:04Z [CARBONDATA-2411] infinite loop when sdk writer throws Exception ---- --- |
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/2245 SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4587/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2245 Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5485/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2245 Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4319/ --- |
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/2245 SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4588/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2245 Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4320/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2245 Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5486/ --- |
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/2245#discussion_r184937474 --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonWriterBuilder.java --- @@ -335,10 +335,12 @@ private CarbonTable buildCarbonTable() { // When dimensions are default set to sort column, // Inverted index will be supported by default for sort columns. for (Field field : schema.getFields()) { - if (field.getDataType() == DataTypes.STRING || - field.getDataType() == DataTypes.DATE || - field.getDataType() == DataTypes.TIMESTAMP) { - sortColumnsList.add(field.getFieldName()); + if (null != field) { --- End diff -- Please add comment when field can be null --- |
In reply to this post by qiuchenjian-2
Github user BJangir commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2245#discussion_r184945715 --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonWriterBuilder.java --- @@ -335,10 +335,12 @@ private CarbonTable buildCarbonTable() { // When dimensions are default set to sort column, // Inverted index will be supported by default for sort columns. for (Field field : schema.getFields()) { - if (field.getDataType() == DataTypes.STRING || - field.getDataType() == DataTypes.DATE || - field.getDataType() == DataTypes.TIMESTAMP) { - sortColumnsList.add(field.getFieldName()); + if (null != field) { --- End diff -- Fixed. added comment --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2245 Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5533/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2245 Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4368/ --- |
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/2245 SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4633/ --- |
In reply to this post by qiuchenjian-2
|
In reply to this post by qiuchenjian-2
Github user kumarvishal09 commented on the issue:
https://github.com/apache/carbondata/pull/2245 LGTM --- |
Free forum by Nabble | Edit this page |