You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by GitBox <gi...@apache.org> on 2021/09/09 02:12:02 UTC
[GitHub] [gobblin] arjun4084346 commented on a change in pull request #3387: [GOBBLIN-1537] provide a config to provide custom Trash class
arjun4084346 commented on a change in pull request #3387:
URL: https://github.com/apache/gobblin/pull/3387#discussion_r704897462
##########
File path: gobblin-data-management/src/main/java/org/apache/gobblin/data/management/trash/TrashFactory.java
##########
@@ -59,19 +59,12 @@ public static Trash createTrash(FileSystem fs, Properties props) throws IOExcept
*/
public static Trash createTrash(FileSystem fs, Properties props, String user)
throws IOException {
- if(props.containsKey(TRASH_TEST) && Boolean.parseBoolean(props.getProperty(TRASH_TEST))) {
- LOG.info("Creating a test trash. Nothing will actually be deleted.");
- return new TestTrash(fs, props, user);
- }
- if(props.containsKey(SIMULATE) && Boolean.parseBoolean(props.getProperty(SIMULATE))) {
- LOG.info("Creating a simulate trash. Nothing will actually be deleted.");
- return new MockTrash(fs, props, user);
- }
- if(props.containsKey(SKIP_TRASH) && Boolean.parseBoolean(props.getProperty(SKIP_TRASH))) {
Review comment:
Can you please reframe your question? Why do we no longer handle SKIP_TRASH and SIMULATE? I moved this piece of code to createTestMockOrImmediateDeletionTrash()
--
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: dev-unsubscribe@gobblin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org