Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5672 Support protocol aware buckets within a single OM
  3. HDDS-6564

DirectoryDeletionService should use getFileTable to handle bucket delete

    XMLWordPrintableJSON

Details

    Description

      Case: Assume, if the bucket got deleted after marking it to DirectoryDeletingService ("DDS"). Since bucket doesn't exist, DDS can't determine BucketLayout. Below logic leads to NPE.

      KeyManagerImpl.java#L2342

           Table fileTable = metadataManager.getKeyTable(
              getBucketLayout(metadataManager, parentInfo.getVolumeName(),
                  parentInfo.getBucketName()));
      

      Fix: Easy to use directly metadataManager#getFileTable() wherever its possible.

      Attachments

        Issue Links

          Activity

            People

              rakeshr Rakesh Radhakrishnan
              rakeshr Rakesh Radhakrishnan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: