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

If PFS fails to add a partition, rollbackTx() incorrectly attempts to drop it

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.0
    • Component/s: Datasets, Docs, Explore
    • Labels:
      None
    • Rank:
      1|hzzuif:

      Description

      It should only drop partitions that were successfully added.
      Basically, this means that the create operation should only be recorded after the create was successful., Right now that happens before. In addPartition():

          operationsInThisTx.add(new PartitionOperation(key, path, PartitionOperation.OperationType.CREATE));
      
          addPartitionToExplore(key, path);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andreas Andreas Neumann
                Reporter:
                andreas Andreas Neumann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: