Atomic commit

Atomic commit

An atomic commit is an operation where a set of distinct changes is applied as a single operation. If the atomic commit succeeds, it means that all the changes have been applied. If there is a failure before the atomic commit can be completed, such as the Internet line disconnecting or a conflict that cannot be automatically resolved, the "commit" is aborted and all changes that have taken place are reversed (rolled back). In either case, atomic commit leaves the system in a consistent state. The word atom is used in its classical sense: an indivisible unit.

It has been proven that "no" algorithm can solve the problem via the proof of the Two Generals' Problem. However, the Two-phase commit protocol and Three-phase commit protocol are some of the algorithms that can help with "some" of the atomic commitment problems.

Nowadays, atomic commit is mostly encountered in database systems when committing multiple sets of changes at once. These changes can be just different update statements to the same table or changes that span over multiple databases.

Atomic commit is supported also by modern revision control systems and allows committing—uploading to the source—changes in multiple files (called a "changeset") while guaranteeing that all files get fully uploaded and merged. In an atomic commit, typically the files that are committed together are concerned with a single modification, and everything changed in that modification should be included in the commit. In this way, the code trunk stays stable; people who update their working copy do not miss changes left to be committed in somebody else's working copy; the changeset is not too messy to read through; and if the atomic commit is rolled back, the single modification is removed entirely from all parts of the code base.

ee also

*Two-phase commit protocol
*Three-phase commit protocol
*Commit (data management)
*Atomic operation


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Commit (data management) — In the context of computer science and data management, commit refers to the idea of making a set of tentative changes permanent. A popular usage is at the end of a transaction. A commit is an act of committing. Contents 1 Data management 2… …   Wikipedia

  • Atomic Spies — and Atom Spies are terms that refer to various people in the United States, Great Britain, and Canada who are thought to have illicitly given information about nuclear weapons production or design to the Soviet Union during World War II and the… …   Wikipedia

  • Two-phase commit protocol — In computer networking and databases, the two phase commit protocol (2PC) is a distributed algorithm that lets all nodes in a distributed system agree to commit a transaction. The protocol results in either all nodes committing the transaction or …   Wikipedia

  • List of Atomic Betty characters — This is a list of characters from the animated television series Atomic Betty. Contents 1 Main characters 1.1 Atomic Betty/ Betty Barrett 1.2 Sparky 1.3 Robot X 5 …   Wikipedia

  • WS-Atomic Transaction — Web Service Atomic Transaction is an OASIS standard. To achieve all or nothing property for a group of services, it defines three protocols ( i.e. , completion, volatile two phase commit, and durable two phase commit), and a set of services.… …   Wikipedia

  • Doctor Atomic — John Adams …   Wikipedia

  • List of characters in Atomic Betty — This is a list of characters from the Cartoon Network and Teletoon animated television series Atomic Betty .With the exception of the show s eponymous character and the particular story involved, most of the characters encountered in the series… …   Wikipedia

  • Commitment ordering — In concurrency control of databases, transaction processing (transaction management), and related applications, Commitment ordering (or Commit ordering; CO; (Raz 1990, 1992, 1994, 2009)) is a class of interoperable Serializability techniques …   Wikipedia

  • Comparison of revision control software — The following is a comparison of revision control software. The following tables includes general and technical information for notable revision control and software configuration management (SCM) software. This is an incomplete list, which may… …   Wikipedia

  • Revision control — For the Wikipedia revision control system, see Wikipedia:Revision control. Example history tree of a revision controlled project. Revision control, also known as version control and source control (and an aspect of software configuration man …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”