You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/11/11 10:47:54 UTC
[GitHub] [ozone] sadanand48 commented on a diff in pull request #3946: HDDS-7452. [snapshot] Add unit-testcases for snapshot create validation.
sadanand48 commented on code in PR #3946:
URL: https://github.com/apache/ozone/pull/3946#discussion_r1020105434
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmSnapshot.java:
##########
@@ -412,6 +413,20 @@ public void testListAddNewKey()
}
+ @Test
+ public void testNonExistentBucket()
+ throws Exception {
+ String volume = "vol-" + RandomStringUtils.randomNumeric(5);
+ String bucket = "buc-" + RandomStringUtils.randomNumeric(5);
+ //create volume but not bucket
+ store.createVolume(volume);
+ OzoneVolume vol = store.getVolume(volume);
Review Comment:
`M D DLS: Dead store to vol in org.apache.hadoop.ozone.om.TestOmSnapshot.testNonExistentBucket() At TestOmSnapshot.java:[line 423]` , This line can be removed
--
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