Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-4223

Checking the catalog twice when creating a table may cause the path to be deleted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.1
    • None
    • spark-integration
    • None

    Description

      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.

          

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            litao_xidian@126.com Taoli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: