Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-6425

FileSetAdmin#create should fail if the directory already exists

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0, 3.4.0
    • Fix Version/s: 4.0.0
    • Component/s: Datasets
    • Labels:
      None
    • Release Notes:
      Fixed an issue that allowed a FileSet to be created if its corresponding directory already existed.
    • Rank:
      1|hzzfqn:

      Description

      FileSetAdmin is responsible for creating a directory if the FileSet is not external.
      In this case, I believe it should throw an exception or fail in some way if the specified directory already exists (whether the path specified is relative or absolute).
      If the FileSet is not external, then the creation/deletion should be entirely managed by CDAP, and so the directory should not already exist.

        Attachments

          Activity

            People

            • Assignee:
              ali.anwar Ali Anwar
              Reporter:
              ali.anwar Ali Anwar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: