Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A3A118888 for ; Mon, 23 Nov 2015 20:00:48 +0000 (UTC) Received: (qmail 21340 invoked by uid 500); 23 Nov 2015 20:00:48 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 21288 invoked by uid 500); 23 Nov 2015 20:00:48 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 21276 invoked by uid 99); 23 Nov 2015 20:00:47 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2015 20:00:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 68B131A08A3 for ; Mon, 23 Nov 2015 20:00:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=comcast.net Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 63X1wF6EusPZ for ; Mon, 23 Nov 2015 20:00:43 +0000 (UTC) Received: from resqmta-po-12v.sys.comcast.net (resqmta-po-12v.sys.comcast.net [96.114.154.171]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id AE74A441BA for ; Mon, 23 Nov 2015 20:00:42 +0000 (UTC) Received: from resomta-po-16v.sys.comcast.net ([96.114.154.240]) by resqmta-po-12v.sys.comcast.net with comcast id l7yr1r0065BUCh40180cHg; Mon, 23 Nov 2015 20:00:36 +0000 Received: from tpx ([24.130.135.131]) by resomta-po-16v.sys.comcast.net with comcast id l80b1r00J2qGB600180boe; Mon, 23 Nov 2015 20:00:36 +0000 Received: from localhost (localhost [127.0.0.1]) by tpx (Postfix) with ESMTP id 3C25B206EEF29 for ; Mon, 23 Nov 2015 12:00:35 -0800 (PST) Date: Mon, 23 Nov 2015 12:00:35 -0800 From: Konstantin Boudnik To: dev@ignite.apache.org Subject: Re: Igfs PURGE events: do we need them? Message-ID: <20151123200035.GR4878@tpx> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dlyWgUGp3ulkbVzw" Content-Disposition: inline In-Reply-To: X-Organization: It's something of 'Cos X-PGP-Key: http://www.boudnik.org/~cos/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1448308836; bh=whmDbiD9WnjARKDXrHZqgh+0Oahde32QU2/NSD9hmaA=; h=Received:Received:Received:Date:From:To:Subject:Message-ID: MIME-Version:Content-Type; b=j9fmRVtSYGRM7g8tIQTNrM8gEx878OH57ne85/9gm4rgoCxpUkfud6l2MVAyNvkOt mZg6eGTpdT6bwCnr4s8pV5i/h2tfZJkEaoCV/VmkCIrDjL6raYaEUdp/9iwnF2+5hh 1WoKObhJrEs+t6HI/0ysv/V2QPAqMdWCHGomTnRfOshkucKWh5UU1kakgCglOwyrsW fS1sscPQfnwt7TSyApo5o6hVrnwbNFs7VK2ifWnXtbXYfBlT15QRMPxE7paEf7ub7C h8RaP2hPJxJreUMyNpoPNFjiYEF+ogeFxdpZ20iiWMEqHrw2GSFj35ZsZZTrMfhP0+ /WWGH8/nL0Gdg== --dlyWgUGp3ulkbVzw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Let me ask a different question: what's the point of having the concept of TRASH? Here's an example why I think the 'soft' delete would only complicate thing. Suppose IGFS is sitting on top of HDFS and both have 'Trash' enabled. Now, the file is getting soft-deleted from IGFS and is moved to TRASH folder. But in HDFS it is also a move to a place which doesn't have any special meaning for HDFS.=20 Even worst, if IFGS TRASH is linked to HDFS .Trash. HDFS has it's own policy on how to clean that up, which is likely to be different from that on IGFS. Often enough, HDFS .Trash is simply disabled. This discrepancy is going to create a situation when a file should still be in TRASH, but the secondary = FS has already purged it. And what if yet another secondary file system like S3 has yet another policy around their own trash, which they don't even have, I believe? Where I am going with this is pretty straight forward: let's drop the soft-delete support and let the secondary FS to deal with it. If there's no secondary FS configured - the content of deleted file will have to retrieved by other means. Thoughts? Cos On Fri, Nov 20, 2015 at 07:15PM, Ivan V. wrote: > Hi, dev, > need opinions on the question discussed in > https://issues.apache.org/jira/browse/IGNITE-1679 (IGFS: Purge event is > inconsistent). > In short: in Igfs we have "soft" delete that moves the deleted file or > folder to special "TRASH" folder. > Special async worker walks inside TRASH and removes the items permanently. > When an item is completely removed, an event of type > org.apache.ignite.events.EventType#EVT_IGFS_FILE_PURGED is fired. > But such events are now fired only for files, and only in case if such fi= le > was deleted itself, but not a part of a folder sub-tree. It's quite obvio= us > that such behavior is not quite consistent, so we should either get rid of > PURGE events at all, or make them consistent. > In the latter case it would be good to have answer to the question: what > are real use cases when we may need the purge events ? (Now they seem to > be used in tests only). > If we don't have such real use cases, are there any objections to get rid > of the purge events at all? > Thanks in advance. --dlyWgUGp3ulkbVzw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iF4EAREIAAYFAlZTcGMACgkQenyFlstYjhKjGQD/SXj4Gm+g/+w5FC7QP4jJbERm 4Jcy3AyCKaB5RX6MOlgBAONYtZGZIH0QlXby+jp5LixPdZRGAivHMzSOSM+yNE6p =dDCj -----END PGP SIGNATURE----- --dlyWgUGp3ulkbVzw--