Galera Cluster and Isolation Levels

369 views
Skip to first unread message

oli.sen...@bluewin.ch

unread,
Apr 11, 2013, 3:45:42 PM4/11/13
to codersh...@googlegroups.com
Hello all,

What InnoDB Isolation Levels is Galera Cluster supporting?

I had something in my mind repeatable-read only
but I am not sure. Can you please clear this?

Could be a candidate for FAQ.

If there is a restriction it would be a
candidate for Limitations.

Regards,
Oli

seppo....@codership.com

unread,
Apr 12, 2013, 2:37:13 AM4/12/13
to codersh...@googlegroups.com
Locally, in one node, transaction isolation works as with native
InnoDB, so all levels can be used.
But cluster wide, between transactions processing in separate nodes,
Galera implements transaction level called "SNAPSHOT ISOLATION". The
SNAPSHOT ISOLATION level is between REPEATABLE READ and SERIALIZABLE
levels.

SERIALIZABLE level cannot be guaranteed in multi-master use case,
because Galera replication does not carry transaction read set. Also,
SERIALIZABLE transaction is vulnerable for multi-master conflicts. It
holds read locks and any replicated write to read locked row will
cause transaction abort. So you better not use it in Galera Cluster.

-seppo



Oleksandr Drach

unread,
Apr 15, 2013, 5:53:53 AM4/15/13
to codersh...@googlegroups.com, oli.sen...@bluewin.ch

Oleksandr Drach

unread,
Apr 15, 2013, 5:55:45 AM4/15/13
to codersh...@googlegroups.com, oli.sen...@bluewin.ch
Hello Oli,

Thanks for your suggestion.
Just updated Galera FAQ with your question.

And Thanks Seppo for posting answer :)

Have a nice clustering!


On Thursday, April 11, 2013 10:45:42 PM UTC+3, shinguz wrote:
Reply all
Reply to author
Forward
0 new messages