Re: [Gen-art] Gen-art LC review of draft-ietf-nfsv4-rfc3530bis-33
Tom Haynes <thomas.haynes@primarydata.com> Mon, 01 December 2014 22:13 UTC
Return-Path: <thomas.haynes@primarydata.com>
X-Original-To: gen-art@ietfa.amsl.com
Delivered-To: gen-art@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D8ABE1ACC8D for <gen-art@ietfa.amsl.com>; Mon, 1 Dec 2014 14:13:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] 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 U8sQVF7lknRB for <gen-art@ietfa.amsl.com>; Mon, 1 Dec 2014 14:13:32 -0800 (PST)
Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F24A61ACCDC for <gen-art@ietf.org>; Mon, 1 Dec 2014 14:13:31 -0800 (PST)
Received: by mail-pd0-f174.google.com with SMTP id w10so11753974pde.33 for <gen-art@ietf.org>; Mon, 01 Dec 2014 14:13:31 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=jkT3Md8LbI5TC9Xnj4HzMj+2bgDRiw9nhs+JJ9Qpm5I=; b=jxbYzuDM4EHWs8dAW8UN0a+7JeAyV4NIrB/y5HcgndtsrcYdxdP3pc+OtuwO4im/IK YrlpEbcw8WJc+VGJYuO3XuJpUDWahqxVe3JDcMGdtilnBQ/M0tx3+ds+jNSWKzSMInxw G0bRhWMi7oeRKaDlU5+5FkcZf32BcgaO9Xbz1Q43vmm4rSd4T2xMgtIsiOr8Ryvh1KUq gh+XbdWydVCAToK/jap0dr8p1KO5LQzxdw9sg3TipjrA4BBZWqWMWUXSHEkROyy0SuwO Ul9E54CFUlx2t3HWB8ZwP0w6qC3VV5hR58DuEVWyp/vcoh1gF06di+6J07qRrfAD+eMn Vl2Q==
X-Gm-Message-State: ALoCoQmQqHgFnzyLCJb/UXTTVOrOXPMZSVIwualns7o3Pkn4TpD7T0+Ti/b6SBk6rH3Z/uysDqB4
X-Received: by 10.70.13.1 with SMTP id d1mr14746241pdc.132.1417472011637; Mon, 01 Dec 2014 14:13:31 -0800 (PST)
Received: from [10.30.8.37] ([50.242.95.105]) by mx.google.com with ESMTPSA id gm11sm18355991pbd.63.2014.12.01.14.13.30 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Dec 2014 14:13:31 -0800 (PST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
From: Tom Haynes <thomas.haynes@primarydata.com>
In-Reply-To: <547CC75C.7010909@dial.pipex.com>
Date: Mon, 01 Dec 2014 14:13:29 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <FECA0F42-FBE9-4AE4-B342-C10E7836E910@primarydata.com>
References: <54627625.9050909@dial.pipex.com> <7E1914F4-413F-4F7E-BE9A-C941FBDD422B@primarydata.com> <5465143D.6020604@dial.pipex.com> <47860B2D-1977-4062-9775-10463F7030B9@primarydata.com> <EF01418C3D9E034EB5E2FD76E33708EB22CAF09541@AUSX7MCPS308.AMER.DELL.COM> <CADaq8jdvdfqDuGs_Gj4qFZ2HxdH71GRSaKGQZfeq5APW40ZxmQ@mail.gmail.com> <CA071301-D89F-4A4C-B253-086E95A4F929@primarydata.com> <546B0F4F.3060504@dial.pipex.com> <B8733C3C-1986-49B3-9AE6-1B88A8F7CA8C@primarydata.com> <547C7E2B.10305@dial.pipex.com> <CADaq8jcNopgjGZgevo2BNEjWvvV3eCesFLgPzpwg0j33XO1t2A@mail.gmail.com> <547CC75C.7010909@dial.pipex.com>
To: Elwyn Davies <elwynd@dial.pipex.com>
X-Mailer: Apple Mail (2.1993)
Archived-At: http://mailarchive.ietf.org/arch/msg/gen-art/1aZmOp8RRbLBUQSHqeJqyVg8hdk
Cc: "gen-art >> General area reviewing team" <gen-art@ietf.org>, Barry Leiba <barryleiba@computer.org>, David Noveck <davenoveck@gmail.com>
Subject: Re: [Gen-art] Gen-art LC review of draft-ietf-nfsv4-rfc3530bis-33
X-BeenThere: gen-art@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "GEN-ART: General Area Review Team" <gen-art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/gen-art>, <mailto:gen-art-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/gen-art/>
List-Post: <mailto:gen-art@ietf.org>
List-Help: <mailto:gen-art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/gen-art>, <mailto:gen-art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Dec 2014 22:13:43 -0000
> On Dec 1, 2014, at 11:54 AM, Elwyn Davies <elwynd@dial.pipex.com> wrote: > > Hi, David. > > Thanks for the response. > > A couple of comments below... > > Regards, > Elwyn > > On 01/12/14 18:50, David Noveck wrote: >> My view (remains) that if the cookie is not tied to the change >> attribute of the directory, this makes life difficult for both the >> server (what does it send if the data has been changed and how does >> it manage maintaining checkpoints -- where a readdir finished --, in >> particular if the checkpoint was on an entry that has been deleted), >> and the client. >> >> >> The cookie is not tied to the change attribute of the directory. >> >> The purpose of the cookie is ensuring that you do a READDIR that >> encompasses multiple requests: >> >> * entries that exist during the entire period of the multi-requuest >> directory read appear exactly once in the result. >> * entries that exists during some part of the period of the >> multi-request directory read appear at most once in the result. >> >> >> Basically implementations scan through the directory as it exists on >> disk and if there is a created entry, the client may or may not see it, >> depending on where the the new entry happens to be put, with respect to >> the ongoing scan. As far as deleted entries, the implementation only >> has to be able to move on to the next entry if it encouneters an entry >> marked as deleted. > > OK, so the server has to be clever rather than telling the client to restart the readdir -- I'm not sure this is the right trade-off since the client has to cope with being told the cached cookie is useless (as per Trond's input below) but I guess implementations work this way already and it isn't my call. In that case I suggest that the last sentence of s15.26.4, para 9, is modified to tell server implementers a bit more clearly what they have to do. Suggestion: > OLD: > Ideally, the cookie value should not change if the directory is > modified since the client may be caching these values. > NEW: > The server SHOULD try to accept cookie values issued with READDIR > responses even if the directory has been modified between the > READDIR calls but MAY return NFS4ERR_NOT_VALID if this is not > possible as might be the case if the server has rebooted in the > interim. > > One nasty thought occurs to me regarding the idea that a client caches > the cookie value(s): Is the server supposed to maintain the whole > sequence of cookies for a sequence of READDIRs on a single directory so > the client can reissue some of the READDIR calls or is it fair enough for the server to throw them away after the client has used them once? And how long should the server hang onto cookie state in normal operation? > >> >> s19.4.1, para 2: >> >> > For the purposes of open delegation, READs and WRITEs done without an >> > OPEN are treated as the functional equivalents of a corresponding >> > type of OPEN. This refers to the READs and WRITEs that use the >> > anonymous stateid. Therefore, READs or WRITEs with an anonymous >> > stateid done by another client will force the server to recall a >> > OPEN_DELEGATE_WRITE delegation. A WRITE with an anonymous stateid >> > done by another client will force a recall of OPEN_DELEGATE_READ >> > delegations. >> >> >> suggest rewriting this as; >> >> For the purposes of open delegation, READs and WRITEs done without an >> >> OPEN (anonymous and read-bypass stateids) are treated as the functional >> equivalents of a corresponding type of OPEN. READs and WRITEs done >> with an >> anonymous stateid done by another client will force the server to >> recall a >> >> OPEN_DELEGATE_WRITE delegation. A WRITE with an anonymous stateid >> done by another client will force a recall of OPEN_DELEGATE_READ >> >> delegations. Handling of read-bypass stateid's is identical >> except that a READ >> >> done with a read-bypass stateids will not force a recall of an >> OPEN_DELEGATE_READ >> >> delegation. >> Done > That sounds good. It might be useful to add (e.g., to the end of para 1 of s9.6.1: > "referred to as anonymous stateid and read-bypass stateid respectively.” Willing to do, just not sure where you want this: 9.6.1. Client Failure and Recovery In the event that a client fails, the server may recover the client's locks when the associated leases have expired. Conflicting locks from another client may only be granted after this lease expiration. If the client is able to restart or reinitialize within the lease period the client may be forced to wait the remainder of the lease period before obtaining new locks. I don’t think that line fits here...
- [Gen-art] Gen-art LC review of draft-ietf-nfsv4-r… Elwyn Davies
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Tom Haynes
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Elwyn Davies
- [Gen-art] ***SPAM*** 8.788 (5) Re: Gen-art LC rev… Tom Haynes
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Elwyn Davies
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Tom Haynes
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Tom Haynes
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Elwyn Davies
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… David Noveck
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… David Noveck
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Elwyn Davies
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Tom Haynes
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Tom Haynes
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Tom Haynes
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Tom Haynes
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Elwyn Davies
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Tom Haynes
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Martin Stiemerling
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Elwyn Davies
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… David Noveck
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Thomas Haynes
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Elwyn Davies
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… David Noveck
- Re: [Gen-art] Gen-art LC review of draft-ietf-nfs… Tom Haynes