You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by um...@apache.org on 2021/11/30 17:11:07 UTC
[ozone] branch HDDS-3816-ec updated: HDDS-5979: EC: Change CLI bucket default replication option name to -type (#2873)
This is an automated email from the ASF dual-hosted git repository.
umamahesh pushed a commit to branch HDDS-3816-ec
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/HDDS-3816-ec by this push:
new 93fadc9 HDDS-5979: EC: Change CLI bucket default replication option name to -type (#2873)
93fadc9 is described below
commit 93fadc978917360c7910d3424be9c1a5d7e1f084
Author: Uma Maheswara Rao G <um...@apache.org>
AuthorDate: Tue Nov 30 09:10:44 2021 -0800
HDDS-5979: EC: Change CLI bucket default replication option name to -type (#2873)
---
.../test/java/org/apache/hadoop/ozone/shell/TestOzoneShellHA.java | 6 +++---
.../org/apache/hadoop/ozone/shell/bucket/CreateBucketHandler.java | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/shell/TestOzoneShellHA.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/shell/TestOzoneShellHA.java
index a125878..5c4926a 100644
--- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/shell/TestOzoneShellHA.java
+++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/shell/TestOzoneShellHA.java
@@ -898,7 +898,7 @@ public class TestOzoneShellHA {
final String volumeName = "volume100";
getVolume(volumeName);
String[] args =
- new String[] {"bucket", "create", "/volume100/bucket0", "-rt", "EC",
+ new String[] {"bucket", "create", "/volume100/bucket0", "-t", "EC",
"-r", "rs-3-2-1024k"};
execute(ozoneShell, args);
@@ -915,7 +915,7 @@ public class TestOzoneShellHA {
final String volumeName = "volume101";
getVolume(volumeName);
String[] args =
- new String[] {"bucket", "create", "/volume101/bucket1", "-rt", "RATIS",
+ new String[] {"bucket", "create", "/volume101/bucket1", "-t", "RATIS",
"-r", "3"};
execute(ozoneShell, args);
@@ -932,7 +932,7 @@ public class TestOzoneShellHA {
public void testCreateBucketWithECReplicationConfigWithoutReplicationParam() {
getVolume("volume102");
String[] args =
- new String[] {"bucket", "create", "/volume102/bucket2", "-rt", "EC"};
+ new String[] {"bucket", "create", "/volume102/bucket2", "-t", "EC"};
try {
execute(ozoneShell, args);
Assert.fail("Must throw Exception when missing replication param");
diff --git a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/bucket/CreateBucketHandler.java b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/bucket/CreateBucketHandler.java
index b8dfe30..cce8948 100644
--- a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/bucket/CreateBucketHandler.java
+++ b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/bucket/CreateBucketHandler.java
@@ -70,7 +70,7 @@ public class CreateBucketHandler extends BucketHandler {
" 6-3, 10-4")
private String replication;
- @Option(names = {"--replicationtype", "-rt"},
+ @Option(names = {"--type", "-t"},
description = "Replication type. Supported types are RATIS, STANDALONE,"
+ " EC")
private String replicationType;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org