ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-1510) Weird format() and remove() semantics.
Date Fri, 18 Sep 2015 09:27:04 GMT
Vladimir Ozerov created IGNITE-1510:
---------------------------------------

             Summary: Weird format() and remove() semantics.
                 Key: IGNITE-1510
                 URL: https://issues.apache.org/jira/browse/IGNITE-1510
             Project: Ignite
          Issue Type: Task
          Components: hadoop
    Affects Versions: 1.1.4
            Reporter: Vladimir Ozerov
            Priority: Critical
             Fix For: ignite-1.5


Currently we have two methods to remove something from IGFS:
1) remove - performs soft delete for PRIMARY mode and hard delete for others
2) format - delete of all IGFS data without touching seocndary file system, which can be either
soft or hard depending on some very coutner-intuitive conditions.

I think we should do the following:
1) remove operation stays as is.
2) format method is deprecated and just falls-back to a new method "clear(ROOT)".
3) "clear" operation is semantically identical to cache clear: remove in-memory data, do not
touch persistence layer. Essentially it just moves a tree into the trash just like remove
does. But also this operation will offer sync and async modes. In sync mode operation exits
when all data in-memory data is really removed even from trash. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message