MySQL Forums
Forum List  »  InnoDB

Re: Need help to review a serializability implementation for MySQL Cluster
Posted by: Alex Ou
Date: October 28, 2026 08:32AM

Subsection D.3 has been re-worked so that the description of CocoroachDB's serializability implementation is more accurate. After I read about this implementation in Matt Tracy's article(https://www.cockroachlabs.com/blog/serializable-lockless-distributed-isolation-cockroachdb/), I felt frustrated since a starvation situation in the original algorithm seemed to be still there and I stopped probing CocoroachDB. Then Mira from CockroachDB pointed out that the starvation situation goes away with a mechanism called 'read refreshing' and this news was an absolute delight to me. This re-work mainly reflects that. There are also other interesting aspects like its linearizability implementation in CockroachDB. It took me a while to probe all these.

CocoroachDB's serializability implementation represents a third technical path called timestamp-based serializability implementation, other than the optimistic serializability implementation I've developed for TiDB and the pessimistic serializability implementation I've developed for NDB Cluster. For a specific database application, there is a chance that one implementation may fulfill its performance expectation while others couldn't. For example, a write contention intense application may not survive in an optimistic implementation, but could do OK in a pessimistic one. In this sense, three options are better than two.

Unfortunately, I haven't been able to mount a serializability implementation to CocoroachDB's Read-Committed isolation level, for exactly the same reason as I couldn't do it to TiDB's pessimistic isolation levels. Details can be found in subsection D.3. Since only a tiny piece of the puzzle is missing, I will try to file a feature request to see if there is any luck.

Although serializability plays a core role in guaranteeing correctness of a database application, some database implementations provide other correctness criteria like linearizability and/or external consistency to ease database application developments. These topics are lightly touched in the newly updated subsection 3.8.

There was a glitch in the proof that Google' Spanner's isolation level is serializable and it's been fixed. Please refer to subsection D.1 for the details.

Subsection 7.3.1 has been added to document consistency related hacks and incidents. With the advent of LLM like Mythos, it is not going to make mounting such attacks more difficult. It is time to buckle up your critical database application with a genuine serializability implementation.

Now that we have three serializability implementations based on this work, it's time to dedicate a subsection about how to take advantage of it at second tier. Subsection 3.9 will be available in a few weeks.

Options: Reply• Quote


Subject
Views
Written By
Posted
Re: Need help to review a serializability implementation for MySQL Cluster
53
October 28, 2026 08:32AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.