Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-57911

[TC] objcli.DeleteDirectory should work with Azure DataLake Gen 2

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • master
    • master
    • tools-common
    • None
    • 0

    Description

      What is the problem?
      In a customer issue, we found that DeleteDirectory will fail if the storage account is using Azure DataLake Gen 2. This is because IterateObjects includes directories in this setup and Azure will reject your request to delete a directory that is not empty

      What is the solution?
      On Azure we should change DeleteDirectory to handle this case. One idea would be to call DeleteDirectory recursively if ObjectAttrs.IsDir (once it has been fixed in MB-57910) and only then delete the directory object. If we did this we would have to be careful that other objects we are given may already have been deleted by the recursive call.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              james.lee James Lee
              Matt.Hall Matt Hall
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty