Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-10288

Add a ClearSuperFile(<super> del=true) variety that only deletes the subfiles if super is sole owner

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.4
    • Component/s: None
    • Labels:
      None

      Description

      ClearSuperFile with the option to delete the subfiles, in builds < 4.x, did not abort with an exception if it failed to delete some of the subfiles (it issued a logged warning only).

      In builds >=4.x an exception is fired if it cannot delete one of the subfiles.

      A common situation was where a subfile belonged to >1 super file.

      Whilst unintentional, it has meant that are use cases which relied on deleting all subfiles that belonged only to the superfile ClearSuperFile was being called for.

      For that reason we need a ClearSuperFile(del=true) variety that only does not try to delete subfiles that have multiple owners. It should still fail, if the the delete of any solely owned subfile fails.

        Attachments

          Activity

            People

            • Assignee:
              jakesmith Jake Smith
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: