GitHub user BJangir opened a pull request:
https://github.com/apache/carbondata/pull/2785
[CARBONDATA-2986] Table Properties are lost when multiple driver concâ¦
Issue :- When concurrently multiple driver is creating table , for same
table table properties are lost .
Root Cause :-Schema file is getting overwritten from
CarbonRelation#createTableIfNotExists,because lookup of table is failed . this
is happpened because concurrenly .mdt file is updated and current table is
removed from cache
org.apache.spark.sql.hive.CarbonFileMetastore#checkSchemasModifiedTimeAndReloadTable
Solution :- Since carbon table is already created and Schema file is
already written so no need to do lookup again .
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
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.
Verified manually
- [ ] 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-2986
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/2785.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 #2785
----
commit 1b5a3419bd7c27d82472f4c73587761d0d06ac90
Author: BJangir <babulaljangir111@...>
Date: 2018-09-28T11:47:30Z
[CARBONDATA-2986] Table Properties are lost when multiple driver
concurrently creating table
----
---