All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Reiser <reiser@namesys.com>
To: Tobias Oberstein <Tobias.Oberstein@gmx.de>
Cc: reiserfs-list@namesys.com
Subject: Re: v4 transaction design
Date: Mon, 09 Sep 2002 15:08:48 +0400	[thread overview]
Message-ID: <3D7C8140.3070703@namesys.com> (raw)
In-Reply-To: EGECJPMPCPJFHJIBBCJMEEFCCKAA.Tobias.Oberstein@gmx.de

Tobias Oberstein wrote:

>I have a couple of questions regarding the v4 design. In particular
>with respect to transaction support.
>
>The quotes are take from this document http://www.namesys.com/txn-doc.html
>
>OK, .. regarding syntax:
>
>1. how will the filesystem API extended to support user controlled
>   transaction management?
>
>     * with new syscalls?
>
sys_reiser4(), a new system call.

>     * with ioctl()'s?
>
That would be uglier.

>
>2. will the new API also provide for 2 phase commits
>
yes.

>   (so that the filesystem can act as a XA resource)?
>
what is that?

>
>   Note: even if there is not initial implementation, already
>   defining or planning the hooks might be a good idea
>
>
>.. and the semantics:
>
>"Persons familiar with the database literature will note that these
>definitions [transcrash] do not imply isolation or serializability
>between processes. Isolation requires the ability to undo a sequence
>of operations when lock conflicts cause a deadlock to occur."
>   
>Let me first give a personal impression: IMHO the term "transcrash"
>is misleading and may easily distract people not looking behind the
>words. crash is evil. but I suppose you chose that one because
>transcrashes aren't transactions semantically? I admit, naming the
>"stuff" transaction could also be misleading therefor.
>
In the paper I am writing I just use the term atomic transaction.  Look 
for the docs on this to change a lot between now and January....

>
>
>But now the real question:
>
>Have you considered multi-version concurrency control
>(maintaining multiple versions of an object) to provide
>some level ("READ COMMITTED") of isolation? This would be
>enough for many apps. It's also the default level in Oracle.
>
Yes, it is appropriate to have that.  We don't have someone implementing 
it yet though....

>
>Anyway, in database terminlogy .. what's the isolation level
>you indend to support: "READ UNCOMMITTED"?
>
>
>"Rollback is the ability to abort and undo the effects of the operations
>in an uncommitted transcrash. Transcrashes do not provide isolation,
>which is needed to support separate rollback of separate transcrashes.
>We only support unified rollback of all transcrashes in progress at the
>time of crash recovery."
>
>Does this mean an application cannot abort_tx() at it's will, but
>transactions will only be (automatically) rolled back during recovery
>(and then all uncommitted transactions will be undone)?
>
There will be atomic transactions, and isolated transactions, and only 
isolated transactions will offer independent rollback.  Only isolated 
transactions will be suitable for untrusted users.  

Atomic transactions are implemented except for the API.  Isolated 
transactions are farther away.

>
>"However, our architecture is designed to support
>separate, concurrent atoms so that it can be expanded to implement fully
>isolated transactions in the future."
>
>Are you referring to the interface?
>
No, the infrastructure.

>
>greets,
>Tobias.
>
>
>  
>




  reply	other threads:[~2002-09-09 11:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-08 23:31 v4 transaction design Tobias Oberstein
2002-09-09 11:08 ` Hans Reiser [this message]
2002-09-09 11:25   ` Nikita Danilov
2002-09-11 10:58     ` Xuan Baldauf
2002-09-11 11:10       ` Nikita Danilov
2002-09-11 11:16       ` Hans Reiser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D7C8140.3070703@namesys.com \
    --to=reiser@namesys.com \
    --cc=Tobias.Oberstein@gmx.de \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.