[ 
https://issues.apache.org/jira/browse/HDDS-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dinesh Chitlangia updated HDDS-2148:
------------------------------------
    Target Version/s: 0.5.0
         Description: 
{code:java}
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);
      }
    }
{code}

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.

  was:

{code:java}
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);
      }
    }
{code}

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.


> Remove redundant code in CreateBucketHandler.java
> -------------------------------------------------
>
>                 Key: HDDS-2148
>                 URL: https://issues.apache.org/jira/browse/HDDS-2148
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone CLI
>            Reporter: Dinesh Chitlangia
>            Assignee: Dinesh Chitlangia
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> {code:java}
> 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);
>       }
>     }
> {code}
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to