Re: [nfsv4] persistent sessions and compound atomicity

"J. Bruce Fields" <bfields@fieldses.org> Wed, 09 December 2020 14:42 UTC

Return-Path: <bfields@fieldses.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 03A063A0656 for <nfsv4@ietfa.amsl.com>; Wed, 9 Dec 2020 06:42:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=fieldses.org
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 ghgBf9rvwxgt for <nfsv4@ietfa.amsl.com>; Wed, 9 Dec 2020 06:42:12 -0800 (PST)
Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5842A3A16C8 for <nfsv4@ietf.org>; Wed, 9 Dec 2020 06:42:10 -0800 (PST)
Received: by fieldses.org (Postfix, from userid 2815) id AD6696F4A; Wed, 9 Dec 2020 09:42:09 -0500 (EST)
DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org AD6696F4A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1607524929; bh=vR7ScwDNVXpu0aqhk2Jx5yAL8zW+25i0FPUIw7GLALE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qUgUYBWFdLiXiPfb2gQv8j90UpmqTfh0tugUUSd2YvP8MEsJq0SahSvj/S/xjHGv8 l1WBgb7cGlBoRwP8KzGwe77xhpncpDOtBccmuck3Cia1xxA6sz7QhjbzoGkKxzkauT U00OlxkI5EjaJqemskAZx99SSdusPzqyX+U6c3x4=
Date: Wed, 09 Dec 2020 09:42:09 -0500
From: "J. Bruce Fields" <bfields@fieldses.org>
To: David Noveck <davenoveck@gmail.com>
Cc: NFSv4 <nfsv4@ietf.org>
Message-ID: <20201209144209.GA23889@fieldses.org>
References: <20201209002639.GC16661@fieldses.org> <CADaq8jfhxVatyVgmNQBrd1_BWggSAQj4A1-qrwNRGQ762816Rw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <CADaq8jfhxVatyVgmNQBrd1_BWggSAQj4A1-qrwNRGQ762816Rw@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/z98vULmWhOrKjvPuU9H2GJLsRaA>
Subject: Re: [nfsv4] persistent sessions and compound atomicity
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4/>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Dec 2020 14:42:14 -0000

On Wed, Dec 09, 2020 at 07:46:40AM -0500, David Noveck wrote:
> On Tue, Dec 8, 2020, 7:26 PM J. Bruce Fields <bfields@fieldses.org> wrote:
> 
> > I hadn't given much thought to this language in RFC 5661, and now that I
> > do, it surprises me.  If you have any pointers to discussion I forgot or
> > overlooked, I'd be interested:
> >
> 
> I don't know of any but. I have comments that might be helpful.
> 
> 
> >         https://tools.ietf.org/html/rfc5661#section-2.10.6.5
> >
> >         The execution of the sequence of operations (starting with
> >         SEQUENCE) and placement of its results in the persistent cache
> >         MUST be atomic.
> 
> 
> Although this is ambiguous, I don't think the intention here is to say the
> execution of the Compound needs to be a atomic.  The text is citing two
> things that must be atomic.  It would normally be reasonable to infer that
> each of them must be atomic.  However, the difficulties of doing that,
> given that most individual ops don't need to be atomic. means I think it is
> not intended meaning.  An alternative interpretation is that the transition
> between an existing Compound and a completed compound must be atomic.
> 
> If a client retries a sequence of operations
> >         that was previously executed on the server, the only acceptable
> >         outcomes are either the original cached reply or an indication
> >         that the client ID or session has been lost (indicating a
> >         catastrophic loss of the reply cache or a session that has been
> >         deleted because the client failed to use the session for an
> >         extended period of time).
> >
> 
> In my view, the atomic transition is between encountering an executing
> compound and getting the cached reply for a completed compound.

OK, got it, I think that makes sense.

--b.