You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2019/03/08 06:47:05 UTC

[GitHub] [carbondata] BJangir opened a new pull request #3141: [CARBONDATA-3310]fix IndexOutOfBoundException when drop table and create table run parallel for different table

BJangir opened a new pull request #3141: [CARBONDATA-3310]fix IndexOutOfBoundException when drop table and create table run parallel for different table
URL: https://github.com/apache/carbondata/pull/3141
 
 
   ### Problem:
   when create table is fired and getTableFromMetadataCache is called to find the carbonTable from metadata, at the same time, if removeTableFromMetadata is called for any other table during table it removes one table from metadata and getTableFromMetadataCache throws IndexOutOFBoundException. 
   
   ### Solution:
   maintain a boolean variable whether to remove from metadata during drop or not. If someone is finding table from metadata, do not remove at the same time.
   
   
   Be sure to do all of the following checklist to help us incorporate 
   your contribution quickly and easily:
   
    - [x] Any interfaces changed?
    NA
    - [x] Any backward compatibility impacted?
   NA
    
    - [x] Document update required?
   NA
   
    - [x] Testing done
   tested with 100 times, with create and drop run parallely
           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.
          
    - [x] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. 
   NA
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services