accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew George Wells (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-2851) Import Table Operation removes files
Date Mon, 02 Jun 2014 19:45:05 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14015795#comment-14015795
] 

Andrew George Wells commented on ACCUMULO-2851:
-----------------------------------------------

Yes, that would be satisfactory, with two suggestions.
1. keeping the data intact should be the default behavior. 
2. when cleaning up is enabled, it removes all the files, currently exportMetadata.zip persists.

The general use case,
if you had a large amount of data, and it was backed up on a remote mount. Currently, unless
you copied this data locally and imported the copy, you can lose backup. Accumulo is assuming
that the data is small enough to be copied over, yet some cases this is not possible. Hence,
I would strongly argue the default behavior be to not remove/move files provided by the user.

As for number 2, if we are going to delete the data the user provides, we should clean everything
up. Currently  exportMetadata.zip  solely remains and is useless with the other files.

> Import Table Operation removes files
> ------------------------------------
>
>                 Key: ACCUMULO-2851
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2851
>             Project: Accumulo
>          Issue Type: Bug
>    Affects Versions: 1.5.1, 1.6.0
>            Reporter: Andrew George Wells
>              Labels: easyfix
>             Fix For: 1.5.2, 1.6.1
>
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> When Importing a table, the code calls rename, which moves the file away. I feel that
this is incorrect and the code should copy, not move. 
> The reasoning, is that the files are provided by the user and not managed by Accumulo,
and therefore Accumulo should have maintain the integrity of the files.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message