Taoli created CARBONDATA-4223:
---------------------------------
Summary: Checking the catalog twice when creating a table may
cause the path to be deleted
Key: CARBONDATA-4223
URL: https://issues.apache.org/jira/browse/CARBONDATA-4223
Project: CarbonData
Issue Type: Bug
Components: spark-integration
Affects Versions: 2.1.1
Reporter: Taoli
when create a table CarbonCreateTableCommand will do twice catalog check, one
is under CarbonCreateTableCommand file another is under
CreateDataSourceTableCommand.
CreateDataSourceTableCommand may throw AnalysisException and
CarbonCreateTableCommand will catch it.
if we have 2 command create the same table, something bad will happen.
create table A 1
A carbon check pass 1
create table A 2
A carbon check pass 2
A sparksql check pass 2
A sparksql check no pass 1
throw AnalysisException 1
delete table A folder 1
In this case, the following table A will be deleted.
if the create table use the location then the location will be delete.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)