Re: [Storagesync] Storagesync Digest, Vol 5, Issue 1

Linhui Sun <lh.sunlinh@gmail.com> Mon, 07 December 2015 02:06 UTC

Return-Path: <lh.sunlinh@gmail.com>
X-Original-To: storagesync@ietfa.amsl.com
Delivered-To: storagesync@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0E09E1A92F0 for <storagesync@ietfa.amsl.com>; Sun, 6 Dec 2015 18:06:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QCtABYzwueqH for <storagesync@ietfa.amsl.com>; Sun, 6 Dec 2015 18:06:02 -0800 (PST)
Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 907B11A92EE for <storagesync@ietf.org>; Sun, 6 Dec 2015 18:06:02 -0800 (PST)
Received: by qkek142 with SMTP id k142so26134764qke.2 for <storagesync@ietf.org>; Sun, 06 Dec 2015 18:06:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:from:to:cc:in-reply-to:references:subject:date :message-id:mime-version; bh=EkRFkwXfJt+XQOeAuvT3RBQ0aRCP4SFYosoNEuZosVg=; b=umDab3HRQzE9doit0kicGIJyegz/CNHeGZvAC0bqq++y1mfLGBfRYX95Od5rEZM/QM HIBRpWaJf4u1BSEUSq82xXnweI5bPNNqvKXj/f7zdoJLK8MYICCSyq1sw3tGQhnLPvlr 8B4FchIuus1oQmpkS0jx2l7NR3OV08CKYSPUFCldz0ToBix51mftY/0fDJMF97WV7O20 GiuagV1pCO6WFMNxpJho7Ep1cn2mcaqrcZZxC5Nh2SnBrj0z40NHVSqs9hugNkkLXCpH so1yiKkr+8ATI4eOZAjGR8aKnte3sn5t6sCS8NcZfe8mwkOhRK4S2cZIpepKD+BEV8dT tLgA==
X-Received: by 10.55.79.141 with SMTP id d135mr33240817qkb.41.1449453961778; Sun, 06 Dec 2015 18:06:01 -0800 (PST)
Received: from [127.0.0.1] (ec2-54-210-254-233.compute-1.amazonaws.com. [54.210.254.233]) by smtp.gmail.com with ESMTPSA id b204sm10663006qhb.21.2015.12.06.18.06.00 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 06 Dec 2015 18:06:00 -0800 (PST)
Content-Type: multipart/alternative; boundary="----sinikael-?=_1-14494539600620.460493445629254"
From: Linhui Sun <lh.sunlinh@gmail.com>
To: Markus Unterwaditzer <markus@unterwaditzer.net>
In-Reply-To: <20151207012253.GA10858@localhost.localdomain>
References: <8F085EBA-F6A4-4FBD-8B8E-1F9AE114FD05@unterwaditzer.net> <CAO_YpraJsDKbOXD9MdxHqeAYTMoiZFyViHX+P2PtD=9hpRz9MQ@mail.gmail.com> <20151206173646.GA6290@localhost.localdomain> <1449447450498-61af5a96-1c461047-3019ac1e@gmail.com> <20151207002020.GA5002@localhost.localdomain> <1449448362292-7d42d496-109559e8-4177b3f9@gmail.com> <20151207003810.GA24130@localhost.localdomain> <1449449404474-72724227-c54ecf87-7d18f3b0@gmail.com> <20151207005426.GA29483@localhost.localdomain> <CAO_YpramyzAZ8hS6aphmBNw2FiKTpesb9uW7uGHtjRH_YkPAJg@mail.gmail.com> <20151207012253.GA10858@localhost.localdomain>
Date: Mon, 07 Dec 2015 10:05:56 +0800
X-Cm-Message-Id: 1449453959895882ae3914fb36c97c4e8595adc2eb26c08f5664e987dac3d1133387358
X-Cm-Draft-Id: WyJhIiwzLCJkcmFmdF9pZCIsIjE0NDk0NTM5NTYwMDAiLCJjIiwiMTUxOTM5MTI5MTk2ODkzMDAyMCIsInYiLDFd
X-Mailer: CloudMagic
Message-Id: <1449453960221-fd85c35a-83d0a351-b60f3237@gmail.com>
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/storagesync/Wl_O9WG8DMkU7FhAzJ4fCwOn3PM>
Cc: storagesync <storagesync@ietf.org>, Ted Lemon <mellon@fugue.com>
Subject: Re: [Storagesync] Storagesync Digest, Vol 5, Issue 1
X-BeenThere: storagesync@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Mechanisms to synchronize client file systems with Internet-based data storage services <storagesync.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/storagesync>, <mailto:storagesync-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/storagesync/>
List-Post: <mailto:storagesync@ietf.org>
List-Help: <mailto:storagesync-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/storagesync>, <mailto:storagesync-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Dec 2015 02:06:05 -0000

On 周一, 12月 7, 2015 at 09:22, Markus Unterwaditzer <markus@unterwaditzer.net>
wrote:
On Mon, Dec 07, 2015 at 09:09:08AM +0800, Linhui Sun wrote:
> 2015-12-07 8:54 GMT+08:00 Markus Unterwaditzer <markus@unterwaditzer.net>:
>
> > On Mon, Dec 07, 2015 at 08:50:00AM +0800, Linhui Sun wrote:
> > > But what if the file has been changed during two sync processes by
> > another
> > > participant who also shares the file.
> >
> > Those are sync conflicts, how to deal with then depends on the kind of
> > data you
> > deal with.
> >
> That works, but do you think this could make the things complicated? It
> sounds like different situations have different mechanisms. Why not just
> make the metadata exchanged, any disadvantage for doing that?

I don't know what that means. The question is why you just keep the metadata locally at client side but not
exchange the metadata between client and server to make both of them (both
peers) have the latest metadata store in time.

>
> >
> > >
> > > >
> > > > On Mon, Dec 07, 2015 at 08:17:26AM +0800, Linhui Sun wrote:
> > > > > On 周一, 12月 7, 2015 at 01:36, Markus Unterwaditzer <
> > markus@unterwaditzer.net>
> > > > > wrote:
> > > > > > IMO, etag is designed for client side cache. A typical usage: if
> > the file
> > > > > > on the server has no actual change, the client will use the cache
> > and the
> > > > > > server does not need to send the file content again. While for a
> > storage
> > > > > > service, we also need some some similar mechanism at server side.
> > In this
> > > > > > way, the client do not need to upload unchanged content to the
> > server.
> > > > >
> > > > > There is no "true-and-only" usecase for etags, and no, you do not
> > need
> > > > anything
> > > > > more than etags for synchronization. Using a additional "metadata"
> > file, the
> > > > > client can cheaply determine whether local content changed and
> > whether
> > > server
> > > > > content changed, and that's all that is required for (in this case)
> > file
> > > > > synchronization. Sync conflicts are a different story, and the
> > solution to
> > > > that
> > > > > heavily depends on the kind of data you're syncing. I'm a little bit
> > > confused
> > > > here: if I have a metadata file, why do I still need
> > > > > the etag? The metadata file should contain something equivalent to
> > the etag.
> > > > >
> > > > > >
> > > > > > > --
> > > > > > > Sent from my phone. Please excuse my brevity.
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Storagesync mailing list
> > > > > > > Storagesync@ietf.org
> > > > > > > [https://www.ietf.org/mailman/listinfo/storagesync] https://www.ietf.org/mailman/listinfo/storagesync
[https://www.ietf.org/mailman/listinfo/storagesync]
> > > > > > >
> > > > >
> > > > > > _______________________________________________
> > > > > > Storagesync mailing list
> > > > > > Storagesync@ietf.org
> > > > > > [https://www.ietf.org/mailman/listinfo/storagesync] https://www.ietf.org/mailman/listinfo/storagesync
[https://www.ietf.org/mailman/listinfo/storagesync]
> > > >
> > > > > _______________________________________________
> > > > > Storagesync mailing list
> > > > > Storagesync@ietf.org
> > > > > [https://www.ietf.org/mailman/listinfo/storagesync] https://www.ietf.org/mailman/listinfo/storagesync
[https://www.ietf.org/mailman/listinfo/storagesync]
> >

> _______________________________________________
> Storagesync mailing list
> Storagesync@ietf.org
> [https://www.ietf.org/mailman/listinfo/storagesync] https://www.ietf.org/mailman/listinfo/storagesync
[https://www.ietf.org/mailman/listinfo/storagesync]