Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2148

Remove redundant code in CreateBucketHandler.java

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      if (isVerbose()) {
            System.out.printf("Volume Name : %s%n", volumeName);
            System.out.printf("Bucket Name : %s%n", bucketName);
            if (bekName != null) {
              bb.setBucketEncryptionKey(bekName);
              System.out.printf("Bucket Encryption enabled with Key Name: %s%n",
                  bekName);
            }
          }
      

      This jira aims to remove the redundant line bb.setBucketEncryptionKey(bekName); as the same operation is performed in the preceding code block. This code block is to print additional details if verbose option was specified.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dineshchitlangia Dinesh Chitlangia Assign to me
            dineshchitlangia Dinesh Chitlangia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 1h 10m
              1h 10m

              Slack

                Issue deployment