You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ashishkumar50 (via GitHub)" <gi...@apache.org> on 2023/07/20 12:00:42 UTC
[GitHub] [ozone] ashishkumar50 opened a new pull request, #5095: HDDS-8916. Update documentation for ozone sh delete commands.
ashishkumar50 opened a new pull request, #5095:
URL: https://github.com/apache/ozone/pull/5095
## What changes were proposed in this pull request?
New delete commands are added recently which supports recursive volume, bucket delete. Also for FSO it supports trash while running from sh command as well. These changes are documented in this PR
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8916
## How was this patch tested?
Verified locally.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] errose28 merged pull request #5095: HDDS-8916. Update documentation for ozone sh delete commands.
Posted by "errose28 (via GitHub)" <gi...@apache.org>.
errose28 merged PR #5095:
URL: https://github.com/apache/ozone/pull/5095
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] errose28 commented on a diff in pull request #5095: HDDS-8916. Update documentation for ozone sh delete commands.
Posted by "errose28 (via GitHub)" <gi...@apache.org>.
errose28 commented on code in PR #5095:
URL: https://github.com/apache/ozone/pull/5095#discussion_r1274172067
##########
hadoop-hdds/docs/content/interface/Cli.md:
##########
@@ -165,6 +185,24 @@ $ ozone sh bucket info /vol1/bucket1
}
```
+If the bucket is empty we can delete bucket using below command.
+
+```shell
+$ ozone sh bucket delete /vol1/bucket1
+Bucket bucket1 is deleted
+```
+
+If the bucket contains some keys, we can delete bucket recursively. Which will delete all the keys for the specified bucket and also bucket will be deleted.
Review Comment:
```suggestion
If the bucket contains any keys, we can delete the bucket recursively. This will delete all the keys within the bucket, and then the bucket itself.
```
##########
hadoop-hdds/docs/content/interface/Cli.md:
##########
@@ -139,6 +139,26 @@ $ ozone sh volume list /
....
} ]
```
+
+If the volume is empty, we can delete volume using below command.
Review Comment:
```suggestion
If the volume is empty, we can delete the volume using the command below.
```
##########
hadoop-hdds/docs/content/interface/Cli.md:
##########
@@ -165,6 +185,24 @@ $ ozone sh bucket info /vol1/bucket1
}
```
+If the bucket is empty we can delete bucket using below command.
Review Comment:
```suggestion
If the bucket is empty we can delete the bucket using the command below.
```
##########
hadoop-hdds/docs/content/interface/Cli.md:
##########
@@ -139,6 +139,26 @@ $ ozone sh volume list /
....
} ]
```
+
+If the volume is empty, we can delete volume using below command.
+
+```shell
+$ ozone sh volume delete /vol1
+Volume vol1 is deleted
+```
+
+If the volume contains some buckets/keys, we can delete volume recursively. Which will delete all the buckets, keys for the specified volume and also volume will be deleted.
Review Comment:
```suggestion
If the volume contains any buckets or keys, we can delete the volume recursively. This will delete all keys and buckets within the volume, and then delete the volume itself.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] ashishkumar50 commented on pull request #5095: HDDS-8916. Update documentation for ozone sh delete commands.
Posted by "ashishkumar50 (via GitHub)" <gi...@apache.org>.
ashishkumar50 commented on PR #5095:
URL: https://github.com/apache/ozone/pull/5095#issuecomment-1651756326
@errose28 Thanks, Handled new comments.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] errose28 commented on a diff in pull request #5095: HDDS-8916. Update documentation for ozone sh delete commands.
Posted by "errose28 (via GitHub)" <gi...@apache.org>.
errose28 commented on code in PR #5095:
URL: https://github.com/apache/ozone/pull/5095#discussion_r1272544805
##########
hadoop-hdds/docs/content/interface/Cli.md:
##########
@@ -139,6 +139,26 @@ $ ozone sh volume list /
....
} ]
```
+
+If Volume is empty, we can delete volume using below command.
+
+```shell
+$ ozone sh volume delete /vol1
+Volume vol1 is deleted
+```
+
+If Volume contains some buckets/keys, we can delete volume recursively. Which will delete all the buckets, keys for the specified volume and also volume will be deleted.
Review Comment:
```suggestion
If the volume contains some buckets/keys, we can delete volume recursively. Which will delete all the buckets, keys for the specified volume and also volume will be deleted.
```
##########
hadoop-hdds/docs/content/interface/Cli.md:
##########
@@ -165,6 +185,24 @@ $ ozone sh bucket info /vol1/bucket1
}
```
+If Bucket is empty we can delete bucket using below command.
Review Comment:
```suggestion
If the bucket is empty we can delete bucket using below command.
```
##########
hadoop-hdds/docs/content/interface/Cli.md:
##########
@@ -208,6 +246,13 @@ $ ozone sh key info /vol1/bucket1/README.md
$ ozone sh key get /vol1/bucket1/README.md /tmp/
```
+In delete key operation, if trash is enabled then for FSO bucket deleted key will move inside trash.
+Whereas for OBS bucket keys will be deleted permanently irrespective of trash is enabled or disabled.
Review Comment:
```suggestion
If the key is in an FSO bucket it will be moved to the trash when deleted.
If the key is in an OBS bucket it will be permanently deleted.
```
Probably want to link to the bucket types page for FSO/OBS buckets too, since I think that part is later in the docs and new users may not be familiar with this term. Also adding the default location of the trash directory will help.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] ashishkumar50 commented on pull request #5095: HDDS-8916. Update documentation for ozone sh delete commands.
Posted by "ashishkumar50 (via GitHub)" <gi...@apache.org>.
ashishkumar50 commented on PR #5095:
URL: https://github.com/apache/ozone/pull/5095#issuecomment-1649543621
@errose28, Thanks for the review, comments are handled.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org