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

Should't delete the entire directory recursively when the table creation fails

    XMLWordPrintableJSON

Details

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

    Description

      when the table creation fails,  carbondata delete the entire directory  of tablePath recursively when catch the AnalysisException.

      the tablePath  may be specified by the user through location. 

      if the specified location include any other folders, they may be delete by this protection mechanism.

      Delete should only contain files and folders created by createtable command.

      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: