sadanand48 commented on a change in pull request #2110:
URL: https://github.com/apache/ozone/pull/2110#discussion_r611002854
##########
File path:
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/shell/TestOzoneShellHA.java
##########
@@ -558,6 +560,86 @@ public void testDeleteToTrashOrSkipTrash() throws
Exception {
}
}
+ @Test
+ public void testDeleteTrashNoSkipTrash() throws Exception {
+
+ // Test delete from Trash directory removes item from filesystem
+
+ // setup configuration to use TrashPolicyOzone
+ // (default is TrashPolicyDefault)
Review comment:
@neils-dev Please use `getClientConfForOFS(hostPrefix,conf)` for
initialising `clientConf` here. The integration test is failing because of this
```
// Test delete from Trash directory removes item from filesystem
// setup configuration to use TrashPolicyOzone
// (default is TrashPolicyDefault)
final String hostPrefix = OZONE_OFS_URI_SCHEME + "://" + omServiceId;
OzoneConfiguration clientConf = getClientConfForOFS(hostPrefix,conf);
clientConf.setInt(FS_TRASH_INTERVAL_KEY, 60);
clientConf.setClass("fs.trash.classname", TrashPolicyOzone.class,
TrashPolicy.class);
OzoneFsShell shell = new OzoneFsShell(clientConf);
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]