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

"Fei Song" <fsong@bjtu.edu.cn> Mon, 07 December 2015 03:17 UTC

Return-Path: <fsong@bjtu.edu.cn>
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 914531B2C46 for <storagesync@ietfa.amsl.com>; Sun, 6 Dec 2015 19:17:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.789
X-Spam-Level:
X-Spam-Status: No, score=0.789 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_BASE64_BLANKS=0.001, RCVD_IN_PSBL=2.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no
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 f3K4BtM3TqE5 for <storagesync@ietfa.amsl.com>; Sun, 6 Dec 2015 19:17:07 -0800 (PST)
Received: from bjtu.edu.cn (mail.bjtu.edu.cn [218.249.29.198]) by ietfa.amsl.com (Postfix) with ESMTP id E0BD11B2C3D for <storagesync@ietf.org>; Sun, 6 Dec 2015 19:17:06 -0800 (PST)
Received: from PC-201001061KKK (unknown [211.71.74.217]) by Jdweb4 (Coremail) with SMTP id eJ5wygDn7_fY+mRW_GoFAA--.10748S2; Mon, 07 Dec 2015 11:19:52 +0800 (CST)
Date: Mon, 07 Dec 2015 11:17:06 +0800
From: Fei Song <fsong@bjtu.edu.cn>
To: storagesync <storagesync@ietf.org>
References: <20151204181110.GA2418@localhost.localdomain> <1449255654746-36498631-5591108f-793d865a@fugue.com> <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> <1449452139832-4f314827-a7ecd596-c5312339@fugue.com> <1449454580239-1fd59d90-52f0231b-370f2ef5@gmail.com>, <1449455245871-cb7e86e1-1a0160c5-aa6acce3@fugue.com>
X-Priority: 3
X-Has-Attach: no
X-Mailer: Foxmail 7.0.1.91[cn]
Mime-Version: 1.0
Message-ID: <2015120711170621874681@bjtu.edu.cn>
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: base64
X-CM-TRANSID: eJ5wygDn7_fY+mRW_GoFAA--.10748S2
X-Coremail-Antispam: 1UD129KBjvJXoW7Zr15tFWUCw4fXrWDAFykGrg_yoW8Zr4xpF W3KFnakayqywn29a4xA3WxuF48Zw4kXr43GF15Krn3Z3y7KrW8tF1IgrWxCFyxW3s3ur1j vrWavwnrCw10va7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvjb7Iv0xC_Cr1lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr1j 6rxdM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr 1lF7xvr2IYc2Ij64vIr41lFcxC0VAYjxAxZF0Ew4CEw7xC0wACY4xI67k04243AVC20s07 MxkIecxEwVAFwVW8GwCF04k20xvY0x0EwIxGrwC20s026c02F40E14v26r1j6r18MI8I3I 0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jr0_JrylIxkGc2Ij64vIr41lIxAI cVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcV CF04k26cxKx2IYs7xG6rWUJVWrZr1UMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2 jsIEc7CjxVAFwI0_Jr0_Gr1l6VACY4xI67k04243AbIYCTnIWIevJa73UjIFyTuYvjxUxm L9DUUUU
X-CM-SenderInfo: aytwlqpemw3hxhgxhubq/
Archived-At: <http://mailarchive.ietf.org/arch/msg/storagesync/v5h4Jc3-2QJYTJHNs1cstkIGhEk>
Subject: Re: [Storagesync] Storagesync Digest, Vol 5, Issue 1
X-BeenThere: storagesync@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: fsong <fsong@bjtu.edu.cn>
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 03:17:08 -0000


--------------
Fei Song
>Sunday, Dec 6, 2015 9:16 PM Linhui Sun wrote:
>> Right. Conflict resolution is a layer above syncing. Could be automatic, could
>> require human intervention (although that's best avoided if possible). Concurrent conflict (e.g. Real-time edit) might/should require human
>> intervention. But the non-concurrent conflict (e.g. modification caused by
>> different peers but not at the same time) should be automatically resolved by
>> the system. Ideally you have a way to go back and undo a change if something important was
>> lost or overwritten. This is another reason why keeping a versioned metadata
>> store is good.
>
>Nope, this doesn't always work.   E.g., peer A is acting as the central server, and peers B and C are disconnected, and while disconnected, both modify file F.   When they reconnect, it's not the case that the later modification to file F can be considered to supersede the earlier modification.   Because both clients modified the same version of the file, what you probably want is for the changes that B made and the changes that C made to be merged.   Often this can be done automatically, but not if both changes are to the same part of the file, and are not the same change.

Can we just treat the requests sent by peer B and peer C based on their timestamps (arriving at the server).
If the file must be kept as the same version, different modification reports can be generated independently with FCFS mode.
If this can not be finished automatically, a human intervention will be needed.

>
>Merges can also be a problem if there are cross-file dependencies.

indeed.

>
>So the bottom line is that you do need to be able to run a conflict resolution process after an update.  But it's not part of the update--it's a separate step, which may result in _another_ update once it's completed.
>
>
>--
>Sent from Whiteout Mail - https://whiteout.io
>
>My PGP key: https://keys.whiteout.io/mellon@fugue.com