zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: create or setData in transaction?
Date Thu, 15 Aug 2019 01:40:12 GMT
The multi op is atomic (all other operations will be before or after teh
multi), consistent (all viewers will see all the effects or none, and
durable (because ZK is linearized anyway).

That leaves isolated which is kind of hard to talk about with ZK since all
operations are fast and sequential.

On Wed, Aug 14, 2019 at 3:12 PM Michael Han <hanm@apache.org> wrote:

> ...
> Ted can correct me if I am wrong, since he added the multi op feature, but
> my understanding is "multi op" is branded from day one as the transaction
> support for zookeeper (we even provide an API with exact name:
> Transaction). If we use the traditional semantic for transaction in
> database context, the ACID properties multi-op satisfies at least atomicity
> and durability. So saying zookeeper does not support transaction seems a
> strong argument that against the properties of multi-op and existing
> literatures related to zookeeper. On the other side, typically bulk
> operations does not support atomicity, which will not take care of rolling
> back failed operations.
>


>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message