[GitHub] carbondata pull request #2536: [CARBONDATA-2766] Added null check on filesta...

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

[GitHub] carbondata pull request #2536: [CARBONDATA-2766] Added null check on filesta...

qiuchenjian-2
GitHub user kunal642 opened a pull request:

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

    [CARBONDATA-2766] Added null check on filestatus

    **Problem:**  While doing any operation on Carbon File if file status acquiring throws exception then it is logged and not thrown again therefore if any further operation on that object required filestatus then it can throw NPE.
   
    **Solution:** Add null check and throw proper exception.
    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/kunal642/carbondata fix_npe

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

    https://github.com/apache/carbondata/pull/2536.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 #2536
   
----
commit 060dc7fc461d9f2eec6603b45651d76588dbb9bc
Author: kunal642 <kunalkapoor642@...>
Date:   2018-07-22T11:39:08Z

    added null check on filestatus

----


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

[GitHub] carbondata issue #2536: [CARBONDATA-2766] Added null check on filestatus

qiuchenjian-2
Github user CarbonDataQA commented on the issue:

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



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

[GitHub] carbondata issue #2536: [CARBONDATA-2766] Added null check on filestatus

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

    https://github.com/apache/carbondata/pull/2536
 
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/5953/



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

[GitHub] carbondata issue #2536: [CARBONDATA-2766] Added null check on filestatus

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

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



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

[GitHub] carbondata issue #2536: [CARBONDATA-2766] Added null check on filestatus

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

    https://github.com/apache/carbondata/pull/2536
 
    why not throw IOException so that user can explicitly know and handle the exception.
    In your implementation, when there is a problem, the user will get RTE instead of NPE which I think there’s no difference.


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

[GitHub] carbondata issue #2536: [CARBONDATA-2766] Added null check on filestatus

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

    https://github.com/apache/carbondata/pull/2536
 
    Besides, there are too many duplicate code here to check null.
   
    If null will cause EXCEPTION for all the operations, why not throw EXCEPTION as soon as the variable filestatus is assigned in setter or constructor?


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

[GitHub] carbondata issue #2536: [CARBONDATA-2766] Added null check on filestatus

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

    https://github.com/apache/carbondata/pull/2536
 
    @xuchuanyin Closing this PR. Refer #2465


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

[GitHub] carbondata pull request #2536: [CARBONDATA-2766] Added null check on filesta...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user kunal642 closed the pull request at:

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


---