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

Truncating impersonated datasets fails or changes the group

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.3.0
    • Component/s: Datasets
    • Labels:
    • Release Notes:
      Fixes an issue where truncating a file set did not preserve its base directory's ownership and permissions.
    • Rank:
      1|i006fb:

      Description

      Truncating a PartitionedFileSet either causes the base directories group to change, or truncation fails. The two scenarios are defined below.

      1) Scenario 1 – truncate an empty dataset
      From cdap ui, find the dataset and do the truncate. If the dataset is currently empty, the truncate will reset the group id to cdap. For example, the Bridge_Opt is empty, and its group id is d1sbprst. After truncation, the group set to cdap by the cdap.

      Before truncate:
      drwxr-xr-x - d1ingest d1sbprst 0 2017-08-07 18:43 /d1/stg/msubprf_stg/jw769dX2/bridge_opt

      after truncate:
      drwxr-xr-x - d1ingest cdap 0 2017-08-07 18:43 /d1/stg/msubprf_stg/jw769dX2/bridge_opt

      subsequent ingestion will fail because the group changed.

      2) Scenario 2 – truncate a dataset which in not empty
      if the dataset is not empty, the truncation will cause server error. the data will not be truncated.

        Attachments

          Activity

            People

            • Assignee:
              andreas Andreas Neumann
              Reporter:
              jd565c Jeff Dix
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: